codecombat/app/templates/play/modal/leaderboard-modal.jade

27 lines
1 KiB
Text
Raw Normal View History

2015-01-30 15:27:19 -05:00
.modal-dialog
.modal-content
img(src="/images/pages/play/modal/leaderboard-background.png", draggable="false")#leaderboard-background
h1.level-title= levelName
2015-01-30 15:27:19 -05:00
div#close-modal
span.glyphicon.glyphicon-remove
ul#leaderboard-nav.nav.nav-pills.nav-stacked
- var lastScoreType = null;
2015-01-30 15:27:19 -05:00
for submenu, index in submenus
if lastScoreType && submenu.scoreType != lastScoreType
br
2015-01-31 00:36:36 -05:00
li(class=index ? "" : "active")
a(href='#' + submenu.scoreType + '-' + submenu.timespan + '-view', data-toggle='tab')
if submenu.scoreType != lastScoreType
.scoreType(data-i18n='leaderboard.' + submenu.scoreType.replace('-', '_'))= submenu.scoreType
else
.scoreType  
2015-01-31 00:36:36 -05:00
.timespan(data-i18n='leaderboard.' + submenu.timespan)
- lastScoreType = submenu.scoreType;
2015-01-30 15:27:19 -05:00
.tab-content.leaderboard-tab-content
for submenu, index in submenus
2015-01-31 00:36:36 -05:00
.tab-pane(id=submenu.scoreType + '-' + submenu.timespan + '-view')
2015-01-30 15:27:19 -05:00
.leaderboard-tab-view