2014-05-19 14:58:45 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
each campaign in campaigns
|
|
|
|
.campaign-container
|
|
|
|
h1
|
|
|
|
a(href="/play/#{campaign.levels[0].levelPath || 'level'}/#{campaign.levels[0].id}", data-i18n="play.campaign_#{campaign.id}")= campaign.name
|
|
|
|
p.campaign-description(data-i18n="[html]play.campaign_#{campaign.id}_description")!= campaign.description
|
|
|
|
each level in campaign.levels
|
|
|
|
a(href=level.disabled ? "/play/ladder" : "/play/ladder/#{level.id}", disabled=level.disabled, class=levelStatusMap[level.id] || '', title=level.description)
|
|
|
|
.level
|
|
|
|
if level.image
|
|
|
|
img.level-image(src="#{level.image}", alt="#{level.name}").img-rounded
|
|
|
|
else
|
2014-11-22 20:38:01 -05:00
|
|
|
img.level-image(src="/images/pages/play/ladder/multiplayer_notext.jpg", alt="#{level.name}").img-rounded
|
2014-05-19 14:58:45 -04:00
|
|
|
//h3= level.name + (level.disabled ? " (Coming soon!)" : "")
|
|
|
|
.overlay-text.level-difficulty
|
|
|
|
span(data-i18n="play.level_difficulty") Difficulty:
|
|
|
|
each i in Array(level.difficulty)
|
|
|
|
| ★
|
2014-08-28 01:23:24 -04:00
|
|
|
- var playCount = levelPlayCountMap[level.id]
|
|
|
|
if playCount
|
|
|
|
span.spl.spr - #{playCount.sessions}
|
|
|
|
span(data-i18n="play.players") players
|
2014-05-19 14:58:45 -04:00
|
|
|
.play-text-container
|
|
|
|
.overlay-text.play-text(data-i18n="home.play") Play
|