- // 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(to="/")
- // select options all variants + filter possible (as in problems)
- | Home
- router-link(to="/myGames")
- | {{ $tr["My games"] }}
- router-link(to="/rules")
- // Boxes OK for rules/Atomic/ ...etc
- | {{ $tr["Rules"] }}
- router-link(to="/problems")
- | {{ $tr["Problems"] }}
- #userMenu.clickable.right-menu(onClick="doClick('modalUser')")
- .info-container
- p
- span {{ !$user.email ? "Login" : "Update" }}
- span.icon-user
- #flagMenu.clickable.right-menu(onClick="doClick('modalLang')")
- img(src="/images/flags/" + lang + ".svg")
- #settings.clickable(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