X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fvariant.pug;h=7f01b9102148b24796c4c217477d0e07652106f5;hb=375ecdd1387e729f85ed114e82253469e4849869;hp=62e9d76dc2d4a0f955c29d53224b59607d035d50;hpb=247356cde3f4e36004942c5f57187d667f7ef27c;p=vchess.git diff --git a/views/variant.pug b/views/variant.pug index 62e9d76d..7f01b910 100644 --- a/views/variant.pug +++ b/views/variant.pug @@ -6,16 +6,18 @@ block css block content .container#variantPage - // Modals + include langNames.pug case lang when "en" include translations/en.pug - include langNames/en.pug include modal-lang/en.pug include modal-help/en.pug + when "es" + include translations/es.pug + include modal-lang/es.pug + include modal-help/es.pug when "fr" include translations/fr.pug - include langNames/fr.pug include modal-lang/fr.pug include modal-help/fr.pug input#modal-newgame.modal(type="checkbox") @@ -36,8 +38,8 @@ block content a(href="#rules" @click="setDisplay('rules')") =translations["Rules"] a(href="#play" @click="setDisplay('play')") - =translations["Play!"] - a(href="#problems" @click="setDisplay('problems')") + =translations["Play"] + a(href="#problems" v-if="notDark()" @click="setDisplay('problems')") =translations["Problems"] #flagMenu.clickable( onClick="document.getElementById('modalLang').checked=true") @@ -49,7 +51,8 @@ block content .row my-rules(v-show="display=='rules'") my-game(v-show="display=='play'" v-bind:problem="problem") - my-problems(v-show="display=='problems'" v-on:show-problem="showProblem($event)") + my-problems(v-if="notDark()" v-show="display=='problems'" + v-on:show-problem="showProblem($event)") block javascripts script(src="/javascripts/utils/misc.js")