Created
July 22, 2016 21:08
-
-
Save dhcodes/c39fbc9a552d7fc530bbb041de8a4c63 to your computer and use it in GitHub Desktop.
Fix Star Disappearing on Completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
span.challengeBlockTime (#{challengeBlock.time}) | |
div.margin-left-10(id = "nested-collapse"+challengeBlock.name.replace(/\W/gi, '').split(' ').join('-') class = "collapse in map-collapse no-transition chapterBlock") | |
for challenge in challengeBlock.challenges | |
if challenge.completed | |
p.challenge-title.faded.text-primary.ion-checkmark-circled.padded-ionic-icon.negative-15(name="#{challenge.dashedName}") | |
a(href="#{challenge.url}" target='_parent') | |
= challenge.title | |
span.sr-only= " Complete" | |
span.text-primary     | |
strong * | |
else if challenge.isRequired | |
p.challenge-title.ion-ios-circle-outline.padded-ionic-icon.negative-15(name="#{challenge.dashedName}") | |
a(name="#{challenge.dashedName}" target='_parent' href="#{challenge.url}" class=challenge.isComingSoon ? 'disabled' : '') | |
span= challenge.title | |
span.sr-only= " Incomplete" | |
if challenge.markNew | |
span.text-info.small     | |
strong | |
em New | |
if challengeBlock.isComingSoon | |
span.text-info.small     | |
strong | |
em Coming Soon | |
span.text-primary     | |
strong * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment