codecombat/app/templates/game-menu/game-menu-modal.jade
Matt Lott 35cba4a90d Sync PVP status view and bug fixes
Pvp status view (temp location and UI)
Remove pvp status from control bar
Add game menu param for jumping into a specific tab
Lots of bug fixing and session state cleanup
Does not address problems with executing real-time multiplayer cast
2014-10-31 16:33:43 -07:00

34 lines
1.4 KiB
Text

extends /templates/modal/modal_base
block modal-header
block modal-body-content
.button.close(type="button", data-dismiss="modal", aria-hidden="true") ×
.tabbable.tabs-left
- var submenus = ["inventory", "choose-hero", "save-load", "options", "guide", "multiplayer"]
- if (!showsGuide) {
- submenus.splice(4, 1);
- }
- if (!showDevBits) { // Not done yet.
- submenus.splice(2, 1);
- }
- if (!showInventory)
- submenus.splice(0, 1);
ul.nav.nav-tabs#game-menu-nav
for submenu, index in submenus
li(class=submenu === showTab || index === 0 && !showTab ? "active" : "")
a(href='#' + submenu + '-view', data-toggle='tab')
h2(data-i18n='game_menu.' + submenu.replace('-', '_') + '_tab')
em(data-i18n='game_menu.' + submenu.replace('-', '_') + '_caption')
if me.get('anonymous')
li.auth-tab(data-toggle='coco-modal', data-target="modal/AuthModal")
a(data-toggle='coco-modal', data-target="modal/AuthModal")
h2(data-i18n='game_menu.auth_tab')
em(data-i18n='game_menu.auth_caption')
.tab-content
for submenu, index in submenus
.tab-pane(id=submenu + '-view')
.clearfix
block modal-footer
button.btn.btn-primary.btn-lg.overlaid-close-button(type="button", data-dismiss="modal", aria-hidden="true", data-i18n="modal.close") Close