Compatibility table now outside of the foreach loop when looping test.
This commit is contained in:
parent
b3b961456a
commit
0c5c8eac8e
|
@ -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 -->
|
||||
|
|
Reference in New Issue