further build up challengemap

This commit is contained in:
Quincy Larson
2016-01-11 18:25:20 -06:00
committed by Berkeley Martinez
parent d5a2c6e4b8
commit c026717aa4

View File

@ -1,6 +1,6 @@
extends ../layout-wide extends ../layout-wide
block content block content
.col-xs-12.col-sm-3.col-sm-offset-9 .col-xs-12.col-sm-4.col-sm-offset-8
for superBlock, index in superBlocks for superBlock, index in superBlocks
for challengeBlock in superBlock.blocks for challengeBlock in superBlock.blocks
h4.bold #{challengeBlock.name} (#{challengeBlock.time}) h4.bold #{challengeBlock.name} (#{challengeBlock.time})
@ -11,22 +11,32 @@ block content
= challenge.title = challenge.title
span.sr-only= " Complete" span.sr-only= " Complete"
else else
p.negative-15 if challenge.type === "bonfire"
a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '') p.ion-asterisk.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
span= challenge.title a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '')
span.sr-only= " Incomplete" span= challenge.title
if challenge.markNew span.sr-only= " Incomplete"
span.text-success.small     if challenge.markNew
strong span.text-success.small    
em New strong
if challengeBlock.isComingSoon em New
span.text-success.small     if challengeBlock.isComingSoon
strong span.text-success.small    
em Coming Soon strong
if challenge.type === "bonfire" em Coming Soon
span.text-info.small     else
strong p.ion-ios-circle-outline.padded-ionic-icon.negative-15(name="#{challenge.dashedName}")  
em Required a(name="#{challenge.dashedName}" href="/challenges/#{challenge.dashedName}" class=challenge.isComingSoon ? 'disabled' : '')
span= challenge.title
span.sr-only= " Incomplete"
if challenge.markNew
span.text-success.small    
strong
em New
if challengeBlock.isComingSoon
span.text-success.small    
strong
em Coming Soon
if (index < superBlocks.length) if (index < superBlocks.length)
hr hr