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

Updates to games template.

This commit is contained in:
chris062689 2017-06-03 16:48:15 -04:00
parent 0dfe4a2b63
commit 9dd87b75d3
1 changed files with 29 additions and 12 deletions

View File

@ -38,14 +38,6 @@
<td>Status</td> <td>Status</td>
<td><b>{{ $rating.name }}</b><br />{{ $rating.description }}</td> <td><b>{{ $rating.name }}</b><br />{{ $rating.description }}</td>
</tr> </tr>
<tr>
<td>Tested Date</td>
<td>{{ dateFormat "January 2, 2006" .Params.tested_date }}</td>
</tr>
<tr>
<td>Tested Version</td>
<td>{{ .Params.tested_version }}</td>
</tr>
<tr> <tr>
<td>Game Icon</td> <td>Game Icon</td>
<td><img class="img-responsive" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td> <td><img class="img-responsive" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td>
@ -74,6 +66,31 @@
<p>{{ .Params.Description }}</p> <p>{{ .Params.Description }}</p>
{{ .Content }} {{ .Content }}
<!-- Compatibility -->
<div class="row">
<div class="col-md-12">
<h2>Compatibility</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Date</th>
<th>Tested By</th>
<th>Citra Version</th>
<th>Rating</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ dateFormat "January 2, 2006" .Params.tested_date }}</td>
<td><a href="https://community.citra-emu.org/u/{{ .Params.tested_by }}/summary">{{ .Params.tested_by }}</a></td>
<td>{{ .Params.tested_version }}</td>
<td><b>{{ $rating.name }}</b></td>
</tr>
</tbody>
</table>
</div>
</div>
{{ if (where (readDir "/static/savefiles") "Name" .File.BaseFileName) }} {{ if (where (readDir "/static/savefiles") "Name" .File.BaseFileName) }}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@ -90,10 +107,10 @@
<tbody> <tbody>
{{ range .Params.savefiles }} {{ range .Params.savefiles }}
<tr> <tr>
<th><a href="/savefiles/{{ $gameName }}/{{ .filename }}">{{ .title }}</a></th> <td><a href="/savefiles/{{ $gameName }}/{{ .filename }}">{{ .title }}</a></td>
<th>{{ .description }}</th> <td>{{ .description }}</td>
<th><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></th> <td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
<th>{{ dateFormat "January 2, 2006" .date }}</th> <td>{{ dateFormat "January 2, 2006" .date }}</td>
</tr> </tr>
{{ end }} {{ end }}
</tbody> </tbody>