mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
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
|
|
img.level-image(src="/images/pages/home/multiplayer_notext.jpg", alt="#{level.name}").img-rounded
|
|
//h3= level.name + (level.disabled ? " (Coming soon!)" : "")
|
|
.overlay-text.level-difficulty
|
|
span(data-i18n="play.level_difficulty") Difficulty:
|
|
each i in Array(level.difficulty)
|
|
| ★
|
|
- var playCount = levelPlayCountMap[level.id]
|
|
if playCount
|
|
span.spl.spr - #{playCount.sessions}
|
|
span(data-i18n="play.players") players
|
|
.play-text-container
|
|
.overlay-text.play-text(data-i18n="home.play") Play
|