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 -->
|
<!-- Compatibility -->
|
||||||
{{ if isset .Params "testcases" }}
|
{{ if isset .Params "testcases" }}
|
||||||
{{ $siteCompatibility := .Site.Data.compatibility }}
|
|
||||||
{{ range .Params.testcases }}
|
|
||||||
{{- $rating := index $siteCompatibility .compatibility }}
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h2>Compatibility</h2>
|
<h2>Compatibility</h2>
|
||||||
@ -113,6 +110,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{{ $siteCompatibility := .Site.Data.compatibility }}
|
||||||
|
{{ range .Params.testcases }}
|
||||||
|
{{- $rating := index $siteCompatibility .compatibility }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ dateFormat "January 2, 2006" .date }}</td>
|
<td>{{ dateFormat "January 2, 2006" .date }}</td>
|
||||||
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
|
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
|
||||||
@ -120,12 +120,12 @@
|
|||||||
<td>{{ .version }}</td>
|
<td>{{ .version }}</td>
|
||||||
<td><b><div class="square-icon" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}</b></td>
|
<td><b><div class="square-icon" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{{ end }}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- Github Issues -->
|
<!-- Github Issues -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user