diff --git a/scripts/games/app.js b/scripts/games/app.js index 41c189f..bcb7a32 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -145,10 +145,10 @@ try { // Parse testcase information out of the dat to reinject as shortcut values. var dat = toml.parse(datContents); if (dat.testcases == null || dat.testcases.length == 0) { - datContents = `compatibility = 99"\r\ntestcase_date = "2000-01-01"\r\n` + datContents; + datContents = `compatibility = \"99\"\r\ntestcase_date = "2000-01-01"\r\n` + datContents; } else { let recent = dat.testcases[0]; - datContents = `compatibility = ${recent.compatibility}\r\ntestcase_date = "${recent.date}"\r\n` + datContents; + datContents = `compatibility = \"${recent.compatibility}\"\r\ntestcase_date = "${recent.date}"\r\n` + datContents; } var wikiContents = ""; diff --git a/site/data/compatibility.json b/site/data/compatibility.json index 97b609a..743f38e 100644 --- a/site/data/compatibility.json +++ b/site/data/compatibility.json @@ -1,9 +1,9 @@ { - "0": { "name": "Perfect", "color": "#5c93ed", "description": "Game functions flawless with no audio or graphical glitches, all tested functionality works as intended without any workarounds needed." }, - "1": { "name": "Great", "color": "#47d35c", "description": "Game functions with minor graphical or audio glitches and is playable from start to finish. May require some workarounds." }, - "2": { "name": "Okay", "color": "#94b242", "description": "Game functions with major graphical or audio glitches, but game is playable from start to finish with workarounds." }, - "3": { "name": "Bad", "color": "#f2d624", "description": "Game functions, but with major graphical or audio glitches. Unable to progress in specific areas due to glitches even with workarounds." }, - "4": { "name": "Intro/Menu", "color": "red", "description": "Game is completely unplayable due to major graphical or audio glitches. Unable to progress past the Start Screen." }, - "5": { "name": "Won't Boot", "color": "#828282", "description": "The game crashes when attempting to startup." }, - "99": { "name": "Not Tested", "color": "black", "description": "This game has not yet been tested." } + "0": { "key": "0", "name": "Perfect", "color": "#5c93ed", "description": "Game functions flawless with no audio or graphical glitches, all tested functionality works as intended without any workarounds needed." }, + "1": { "key": "1", "name": "Great", "color": "#47d35c", "description": "Game functions with minor graphical or audio glitches and is playable from start to finish. May require some workarounds." }, + "2": { "key": "2", "name": "Okay", "color": "#94b242", "description": "Game functions with major graphical or audio glitches, but game is playable from start to finish with workarounds." }, + "3": { "key": "3", "name": "Bad", "color": "#f2d624", "description": "Game functions, but with major graphical or audio glitches. Unable to progress in specific areas due to glitches even with workarounds." }, + "4": { "key": "4", "name": "Intro/Menu", "color": "red", "description": "Game is completely unplayable due to major graphical or audio glitches. Unable to progress past the Start Screen." }, + "5": { "key": "5", "name": "Won't Boot", "color": "#828282", "description": "The game crashes when attempting to startup." }, + "99": { "key": "99", "name": "Not Tested", "color": "black", "description": "The game has not yet been tested." } } diff --git a/site/themes/citra-bs-theme/layouts/game/list.html b/site/themes/citra-bs-theme/layouts/game/list.html index ac0a103..febb8ab 100644 --- a/site/themes/citra-bs-theme/layouts/game/list.html +++ b/site/themes/citra-bs-theme/layouts/game/list.html @@ -5,8 +5,8 @@
{{ range .Site.Data.compatibility }}Status | {{ $rating.name }} {{ $rating.description }} |
|||||
{{ dateFormat "January 2, 2006" $testcase.date }} | -{{ $testcase.author }} | -{{ $testcase.version }} | +{{ dateFormat "January 2, 2006" .date }} | +{{ .author }} | +{{ .version }} | {{ $rating.name }} |