Better challenge link in emails, better text on 'social' button
[vchess.git] / client / src / components / BaseGame.vue
index f4603d6..2f49169 100644 (file)
@@ -40,8 +40,7 @@ div#baseGame(
         :incheck="incheck"
         @play-move="play"
       )
-      #turnIndicator(v-if="game.vname=='Dark' && game.score=='*'")
-        | {{ st.tr[vr.turn + " to move"] }}
+      #turnIndicator(v-if="game.vname=='Dark' && game.score=='*'") {{ turn }}
       #controls
         button(@click="gotoBegin()") <<
         button(@click="undo()") <
@@ -125,6 +124,9 @@ export default {
     showMoves: function() {
       return this.game.vname != "Dark" || this.game.score != "*";
     },
+    turn: function() {
+      return this.st.tr[(this.vr.turn == 'w' ? "White" : "Black") + " to move"];
+    },
     analyze: function() {
       return (
         this.game.mode == "analyze" ||
@@ -452,6 +454,7 @@ export default {
 
 #turnIndicator
   text-align: center
+  font-weight: bold
 
 #belowControls
   border-top: 1px solid #2f4f4f