2014-08-08 14:36:41 -04:00
|
|
|
extends /templates/modal/modal_base
|
|
|
|
|
|
|
|
block modal-header
|
|
|
|
|
|
|
|
block modal-body-content
|
2014-09-04 13:03:34 -04:00
|
|
|
.button.close(type="button", data-dismiss="modal", aria-hidden="true") ×
|
2014-08-08 14:36:41 -04:00
|
|
|
.tabbable.tabs-left
|
|
|
|
- var submenus = ["inventory", "choose-hero", "save-load", "options", "guide", "multiplayer"]
|
2014-08-12 12:13:23 -04:00
|
|
|
- if (!showDevBits) { // Not done yet.
|
|
|
|
- submenus.splice(4, 1);
|
|
|
|
- submenus.splice(2, 1);
|
|
|
|
- }
|
2014-09-02 00:10:45 -04:00
|
|
|
- if (!showInventory)
|
|
|
|
- submenus.splice(0, 1);
|
2014-08-08 14:36:41 -04:00
|
|
|
ul.nav.nav-tabs
|
2014-08-08 18:56:53 -04:00
|
|
|
for submenu, index in submenus
|
|
|
|
li(class=index ? "" : "active")
|
2014-08-08 14:36:41 -04:00
|
|
|
a(href='#' + submenu + '-view', data-toggle='tab')
|
|
|
|
h2(data-i18n='game_menu.' + submenu.replace('-', '_') + '_tab')
|
|
|
|
em(data-i18n='game_menu.' + submenu.replace('-', '_') + '_caption')
|
2014-10-27 12:27:57 -04:00
|
|
|
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')
|
2014-08-08 14:36:41 -04:00
|
|
|
.tab-content
|
|
|
|
for submenu, index in submenus
|
|
|
|
.tab-pane(id=submenu + '-view')
|
|
|
|
.clearfix
|
|
|
|
|
2014-09-21 16:26:56 -04:00
|
|
|
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
|