Compatibility table now outside of the foreach loop when looping test.
This commit is contained in:
parent
b3b961456a
commit
0c5c8eac8e
@ -96,9 +96,6 @@
|
||||
|
||||
<!-- 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>
|
||||
@ -113,6 +110,9 @@
|
||||
</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>
|
||||
@ -120,12 +120,12 @@
|
||||
<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 }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Github Issues -->
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user