Skip to content

Instantly share code, notes, and snippets.

@bxh-io
Created December 4, 2012 14:19
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 bxh-io/4204383 to your computer and use it in GitHub Desktop.
Save bxh-io/4204383 to your computer and use it in GitHub Desktop.
{{#if isGlobalQuestion}}
{{#if content.global_answers.length}}
<a class="global-answers selected">{{content.number_of_community_answers}}</a>
{{else}}
No Community Answers
{{/if}}
{{else}}
     {{#if content.global_answers.length}}
<a {{action switchAnswers target="parentView"}} {{ bindAttr class=":course-answers notGlobalAnswers:selected" }}>{{content.number_of_course_answers}} <span class="ss-icon">&#xF501;</span></a>
      <a {{action switchAnswers target="parentView"}} {{ bindAttr class=":global-answers notCourseAnswers:selected"}}>{{content.number_of_community_answers}}</a>
     {{else}}
<a class="course-answers selected" >{{content.number_of_course_answers}} <span class="ss-icon">&#xF501;</span></a>
          No Community Answers
{{/if}}
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment