projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some improvements; to be continuated
[vchess.git]
/
views
/
variant.pug
diff --git
a/views/variant.pug
b/views/variant.pug
index
62e9d76
..
7f01b91
100644
(file)
--- a/
views/variant.pug
+++ b/
views/variant.pug
@@
-6,16
+6,18
@@
block css
block content
.container#variantPage
block content
.container#variantPage
- // Modals
+ include langNames.pug
case lang
when "en"
include translations/en.pug
case lang
when "en"
include translations/en.pug
- include langNames/en.pug
include modal-lang/en.pug
include modal-help/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
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")
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')")
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")
=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")
.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")
block javascripts
script(src="/javascripts/utils/misc.js")