Compatibility table now outside of the foreach loop when looping test.

This commit is contained in:
chris062689 2017-07-25 00:11:35 -04:00
parent b3b961456a
commit 0c5c8eac8e

View File

@ -96,35 +96,35 @@
<!-- Compatibility -->
{{ if isset .Params "testcases" }}
{{ $siteCompatibility := .Site.Data.compatibility }}
{{ range .Params.testcases }}
{{- $rating := index $siteCompatibility .compatibility }}
<div class="row">
<div class="col-md-12">
<h2>Compatibility</h2>
<table class="table table-responsive table-striped">
<thead>
<tr>
<th>Date</th>
<th>Tested By</th>
<th>Hardware</th>
<th>Citra Version</th>
<th>Rating</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ dateFormat "January 2, 2006" .date }}</td>
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</td>
<td>{{ .version }}</td>
<td><b><div class="square-icon" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}</b></td>
</tr>
</tbody>
</table>
</div>
</div>
{{ end }}
<div class="row">
<div class="col-md-12">
<h2>Compatibility</h2>
<table class="table table-responsive table-striped">
<thead>
<tr>
<th>Date</th>
<th>Tested By</th>
<th>Hardware</th>
<th>Citra Version</th>
<th>Rating</th>
</tr>
</thead>
<tbody>
{{ $siteCompatibility := .Site.Data.compatibility }}
{{ range .Params.testcases }}
{{- $rating := index $siteCompatibility .compatibility }}
<tr>
<td>{{ dateFormat "January 2, 2006" .date }}</td>
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</td>
<td>{{ .version }}</td>
<td><b><div class="square-icon" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}</b></td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
{{ end }}
<!-- Github Issues -->