- // Menu (top of page):
- // shared: Home + flags, userMenu
- // variant: hall, problems, rules, my games + settings
- nav
- label.drawer-toggle(for="drawerControl")
- input#drawerControl.drawer(type="checkbox")
- #menuBar
- label.drawer-close(for="drawerControl")
- router-link(v-if="$route.path != '/'" to="/")
- | Home
- router-link(:href="getLink('/hall')")
- | getLink function : suffix ==> /variant + suffix
- =translations["Hall"]
- router-link(href="#tabGames")
- =translations["My games"]
- router-link(href="#rules")
- =translations["Rules"]
- router-link(href="#problems")
- =translations["Problems"]
- #userMenu.clickable.right-menu(onClick="doClick('modalUser')")
- .info-container
- if !user.email
- p
- span Login
- span.icon-user
- else
- p
- span Update
- span.icon-user
- #flagMenu.clickable.right-menu(onClick="doClick('modalLang')")
- img(src="/images/flags/" + lang + ".svg")
- #settings.clickable(v-show="display!='index'" onClick="doClick('modalSettings')")
- i(data-feather="settings")
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ // Menu (top of page):
+ // Left: hall, variants, mygames, forum (ext. link)
+ // Right: usermenu, settings, flag
+ nav
+ label.drawer-toggle(for="drawerControl")
+ input#drawerControl.drawer(type="checkbox")
+ #menuBar
+ label.drawer-close(for="drawerControl")
+ #leftMenu
+ router-link(to="/")
+ | {{ st.tr["Hall"] }}
+ router-link(to="/variants")
+ | {{ st.tr["Variants"] }}
+ router-link(to="/mygames")
+ | {{ st.tr["My games"] }}
+ // TODO: parametric URL, "forumURL"
+ a(href="https://forum.vchess.club")
+ | {{ st.tr["Forum"] }}
+ #rightMenu
+ .clickable(onClick="doClick('modalUser')")
+ | {{ st.user.id > 0 ? "Update" : "Login" }}
+ .clickable(onClick="doClick('modalSettings')")
+ | {{ st.tr["Settings"] }}
+ .clickable#flagContainer(onClick="doClick('modalLang')")
+ img(v-if="!!st.lang" :src="flagImage")
+ router-view