link(rel="stylesheet" href="/stylesheets/variant.css")
block content
- .container#variantPage
+ include settings
+ .container
.row
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
label.drawer-toggle(for="drawer-control")
#settings.clickable(
onClick="document.getElementById('modalSettings').checked=true")
i.material-icons settings
+ #userMenu.clickable(
+ onClick="document.getElementById('modalUser').checked=true")
+ .info-container
+ i.material-icons person
+ if !user.email
+ p Login
+ else
+ p Update
.row
my-room(v-show="display=='room'")
my-game-list(v-show="display=='gameList'")
script(src="/javascripts/utils/datetime.js")
script(src="/javascripts/socket_url.js")
script(src="/javascripts/base_rules.js")
- script(src="/javascripts/variants/" + variant + ".js")
+ script(src="/javascripts/variants/" + variant.name + ".js")
script.
const V = VariantRules; //because this variable is often used
- const variant = "#{variant}";
+ const variant = !{JSON.stringify(variant)};
script(src="/javascripts/components/room.js")
script(src="/javascripts/components/gameList.js")
script(src="/javascripts/components/rules.js")