shared-bulma-theme/layouts/game/list.html

62 lines
2 KiB
HTML
Raw Normal View History

{{ define "header" }}
<div class="container">
<div class="section pb-xs">
<h1 class="title">Game Compatibility List</h1>
<p class="content">
2018-10-17 00:33:45 +00:00
The compatibility list contains all the games we tested, sorted by how well they work on the emulator.
</p>
<table class="table is-fullwidth">
<tbody>
2018-10-17 00:33:45 +00:00
{{ range .Site.Data.compatibility }}
<tr>
<td>
<div class="is-square" style="background-color: {{ .color }}"></div> {{ .name }}
</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</tbody>
</table>
<!-- <div id="highchart-container" style="height: 100px; margin: 0 auto"></div> -->
</div>
</div>
{{ end }}
{{ define "main" }}
2018-10-17 00:33:45 +00:00
<div class="section pt-xs">
<table class="table is-fullwidth">
<thead>
<tr>
<th>Game Title</th>
<th>Compatibility</th>
<th>Date Tested</th>
</tr>
</thead>
<tbody class="is-size-7">
2018-10-17 00:33:45 +00:00
{{ range .Pages }}
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
<tr data-key="{{ .Params.section_id }}">
<td data-title="{{ .Params.title }}">
2018-10-17 00:33:45 +00:00
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
</td>
<td data-compatibility="{{ $rating.key }}">
<div class="is-square" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
</td>
<td data-timestamp="{{ .Params.testcase_date }}">
{{ if .Params.testcase_date }}
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
{{ else }}
<span></span>
{{ end }}
2018-10-17 00:33:45 +00:00
</td>
</tr>
{{ end }}
</tbody>
2018-10-17 00:33:45 +00:00
</table>
</div>
{{ end }}
{{ define "scripts" }}
2018-10-17 00:33:45 +00:00
{{ end }}