codecombat/app/templates/game-menu/game-menu-modal.jade
2014-11-09 20:19:12 -08:00

25 lines
1.1 KiB
Text

.modal-dialog
.modal-content
img(src="/images/pages/play/modal/game-menu-background.png")#game-menu-background
ul#game-menu-nav.nav.nav-pills.nav-stacked
li
a#change-hero-tab
span.glyphicon.glyphicon-user
span(data-i18n='[title]game_menu.choose_hero_caption;play.change_hero')
for submenu, index in submenus
li(class=submenu === showTab ? "active" : "")
a(href='#' + submenu + '-view', data-toggle='tab')
span.glyphicon(class="glyphicon-"+iconMap[submenu])
- var i18nKey = 'game_menu.' + submenu.replace('-', '_');
span(data-i18n='[title]' + i18nKey + '_caption;' + i18nKey + '_tab')
if me.get('anonymous')
li.auth-tab(data-toggle='coco-modal', data-target="modal/AuthModal")
a(data-toggle='coco-modal', data-target="modal/AuthModal")
span.glyphicon.glyphicon-pencil
span(data-i18n='[title]game_menu.auth_caption;game_menu.auth_tab')
.tab-content.game-menu-tab-content
for submenu, index in submenus
.tab-pane(id=submenu + '-view')