mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 07:55:37 +01:00
Updated GameDB theme.
This commit is contained in:
parent
b727987180
commit
e7d4e9eb67
@ -3,18 +3,18 @@
|
|||||||
<div class="section pb-xs">
|
<div class="section pb-xs">
|
||||||
<h1 class="title">Game Compatibility List</h1>
|
<h1 class="title">Game Compatibility List</h1>
|
||||||
<p class="content">
|
<p class="content">
|
||||||
The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.
|
The compatibility list contains all the games we tested, sorted by how well they work on the emulator.
|
||||||
</p>
|
</p>
|
||||||
<table class="table is-fullwidth">
|
<table class="table is-fullwidth">
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range .Site.Data.compatibility }}
|
{{ range .Site.Data.compatibility }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="is-square" style="background-color: {{ .color }}"></div> {{ .name }}
|
<div class="is-square" style="background-color: {{ .color }}"></div> {{ .name }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ .description }}</td>
|
<td>{{ .description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -24,8 +24,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="section pt-xs">
|
<div class="section pt-xs">
|
||||||
<table class="table is-fullwidth">
|
<table class="table is-fullwidth">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
@ -36,61 +36,60 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range .Data.Pages.GroupByParam "section_id" }}
|
{{ range .Data.Pages.GroupByParam "section_id" }}
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
|
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
|
||||||
{{ $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
|
{{ $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
|
||||||
<tr data-key="{{ .Params.section_id }}">
|
<tr data-key="{{ .Params.section_id }}">
|
||||||
<td class="is-hidden listing-metadata">
|
<td class="is-hidden listing-metadata">
|
||||||
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<img src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
|
<img src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" style="width: 48px; height: 48px;" />
|
||||||
</td>
|
</td>
|
||||||
<td data-title="{{ strings.TrimPrefix "The " .Params.title }}">
|
<td data-title="{{ strings.TrimPrefix "The " .Params.title }}">
|
||||||
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
|
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td data-compatibility="{{ $rating.key }}">
|
<td data-compatibility="{{ $rating.key }}">
|
||||||
<div class="is-square" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
<div class="is-square" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td data-timestamp="{{ .Params.testcase_date }}">
|
<td data-timestamp="{{ .Params.testcase_date }}">
|
||||||
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "scripts" }}
|
{{ define "scripts" }}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
Highcharts.chart('highchart-container', {
|
Highcharts.chart('highchart-container', {
|
||||||
chart: { type: 'bar', backgroundColor: null },
|
chart: { type: 'bar', backgroundColor: null },
|
||||||
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
||||||
credits: { enabled: false },
|
credits: { enabled: false },
|
||||||
exporting: { enabled: false },
|
exporting: { enabled: false },
|
||||||
title: { text: '' },
|
title: { text: '' },
|
||||||
xAxis: { categories: [''] },
|
xAxis: { categories: [''] },
|
||||||
yAxis: { min: 0, max: {{ len .Data.Pages }}, title: { text: '' } },
|
yAxis: { min: 0, max: {{ len .Data.Pages }}, title: { text: '' } },
|
||||||
legend: { enabled: false },
|
legend: { enabled: false },
|
||||||
plotOptions: { series: {
|
plotOptions: {
|
||||||
stacking: 'normal',
|
series: {
|
||||||
cursor: 'pointer',
|
stacking: 'normal',
|
||||||
events: {
|
cursor: 'pointer',
|
||||||
click: null
|
events: {
|
||||||
}
|
click: null
|
||||||
} },
|
}
|
||||||
series: [
|
}
|
||||||
{{- $dataPages := .Data.Pages }}
|
},
|
||||||
{{- range .Site.Data.compatibility }}
|
series: [
|
||||||
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility" .key }}
|
{{- $dataPages := .Data.Pages }}
|
||||||
{ "name": "{{ .name }}", "data": [ {{ len $dataPagesFiltered }} ] },
|
{{- range.Site.Data.compatibility }}
|
||||||
{{- end }}
|
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility".key }}
|
||||||
]
|
{ "name": "{{ .name }}", "data": [{{ len $dataPagesFiltered }}] },
|
||||||
});
|
{{- end }}]});
|
||||||
}, false);
|
}, false);
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
@ -1,10 +1,12 @@
|
|||||||
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
|
{{ if .IsPage }}
|
||||||
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
|
||||||
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
||||||
|
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
||||||
|
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:image" content="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
|
<meta property="og:image" content="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
|
||||||
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
{{- range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
<meta property="og:article:tag" content="{{ . }}" />
|
<meta property="og:article:tag" content="{{ . }}" />
|
||||||
{{- end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user