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

Tweaked games listings for smaller icons and more entries per page.

This commit is contained in:
chris062689 2017-06-04 13:57:52 -04:00
parent 46b1997e28
commit 15f89e2966
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ $paginator := .Paginate .Data.Pages }}
<h1>Game Compatibility List</h1> <h1>Game Compatibility List</h1>
<p>The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.</p> <p>The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.</p>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -41,7 +40,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h2>Games</h2> <h2>Games</h2>
<table class="table"> <table class="table">
<thead> <thead>
@ -53,10 +52,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{ $paginator := .Paginate .Data.Pages 50 }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }} {{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
<tr> <tr>
<td><img class="img-responsive" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td> <td><img class="img-responsive" style="width: 24px; height: 24px;" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td>
<td><a href="{{ .Permalink }}">{{ .Params.title }}</a></td> <td><a href="{{ .Permalink }}">{{ .Params.title }}</a></td>
<td>{{ $rating.name }}</td> <td>{{ $rating.name }}</td>
<td>{{ dateFormat "January 2, 2006" .Params.tested_date }}</td> <td>{{ dateFormat "January 2, 2006" .Params.tested_date }}</td>