mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
23 lines
1.1 KiB
Text
23 lines
1.1 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)
|
|
| ★
|
|
.play-text-container
|
|
.overlay-text.play-text(data-i18n="home.play") Play
|