citra-emu
/
citra-web
Archived
1
0
Fork 0

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
1 changed files with 29 additions and 29 deletions

View File

@ -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 -->