diff --git a/scripts/games/app.js b/scripts/games/app.js index cb185b1..aae7475 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -73,6 +73,7 @@ async function getTestcases() { var body = await request.get(options); return JSON.parse(body).map(x => { return { + id: x.id, title: x.title, compatibility: x.compatibility.toString(), date: x.date, diff --git a/site/themes/citra-bs-theme/layouts/game/single.html b/site/themes/citra-bs-theme/layouts/game/single.html index 59977bd..06b37f7 100644 --- a/site/themes/citra-bs-theme/layouts/game/single.html +++ b/site/themes/citra-bs-theme/layouts/game/single.html @@ -102,6 +102,7 @@ + @@ -114,6 +115,7 @@ {{ range .Params.testcases }} {{- $rating := index $siteCompatibility .compatibility }} + diff --git a/src/js/adminMode.js b/src/js/adminMode.js new file mode 100644 index 0000000..3c0fa83 --- /dev/null +++ b/src/js/adminMode.js @@ -0,0 +1,4 @@ +function advancedView() { + $(".advanced-view").show(); + console.info('Advanced-view enabled.'); +} \ No newline at end of file diff --git a/src/scss/citra-theme.scss b/src/scss/citra-theme.scss index f124d6c..da12930 100644 --- a/src/scss/citra-theme.scss +++ b/src/scss/citra-theme.scss @@ -57,6 +57,10 @@ background-size: 100% auto; } +.advanced-view { + display: none; +} + a:hover { cursor: pointer; }
ID Date Tested By Hardware
{{ if isset . "id" }} {{ .id }} {{ end }} {{ dateFormat "01/02/2006" .date }} {{ .author }} {{ .cpu }}
{{ .gpu }}
{{ .os }}