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 -->
|
<!-- Compatibility -->
|
||||||
{{ if isset .Params "testcases" }}
|
{{ if isset .Params "testcases" }}
|
||||||
{{ $siteCompatibility := .Site.Data.compatibility }}
|
<div class="row">
|
||||||
{{ range .Params.testcases }}
|
<div class="col-md-12">
|
||||||
{{- $rating := index $siteCompatibility .compatibility }}
|
<h2>Compatibility</h2>
|
||||||
<div class="row">
|
<table class="table table-responsive table-striped">
|
||||||
<div class="col-md-12">
|
<thead>
|
||||||
<h2>Compatibility</h2>
|
<tr>
|
||||||
<table class="table table-responsive table-striped">
|
<th>Date</th>
|
||||||
<thead>
|
<th>Tested By</th>
|
||||||
<tr>
|
<th>Hardware</th>
|
||||||
<th>Date</th>
|
<th>Citra Version</th>
|
||||||
<th>Tested By</th>
|
<th>Rating</th>
|
||||||
<th>Hardware</th>
|
</tr>
|
||||||
<th>Citra Version</th>
|
</thead>
|
||||||
<th>Rating</th>
|
<tbody>
|
||||||
</tr>
|
{{ $siteCompatibility := .Site.Data.compatibility }}
|
||||||
</thead>
|
{{ range .Params.testcases }}
|
||||||
<tbody>
|
{{- $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>
|
||||||
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</td>
|
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</td>
|
||||||
<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>
|
||||||
</tbody>
|
{{ end }}
|
||||||
</table>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Github Issues -->
|
<!-- Github Issues -->
|
||||||
|
|
Reference in New Issue