Skip to content

Instantly share code, notes, and snippets.

@dhcodes
Created July 22, 2016 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhcodes/c39fbc9a552d7fc530bbb041de8a4c63 to your computer and use it in GitHub Desktop.
Save dhcodes/c39fbc9a552d7fc530bbb041de8a4c63 to your computer and use it in GitHub Desktop.
Fix Star Disappearing on Completion
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