span.hidden aria-hidden="true" #{"["}
a href="#{summary_user_path(author)}"
  -if author.author_rep_pct
    -if author.author_rep_pct >= 90
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-gold.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -elsif author.author_rep_pct >= 75
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-silver.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -elsif author.author_rep_pct >= 50
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-bronze.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -else
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-white.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
  -else
    span.glyphicon.glyphicon-equalizer.author-rep.author-rep-white.tooltips title="Author contribution score: 0"
  span.sr-only Author with contribution score of #{author.author_rep_pct.floor}
span.hidden aria-hidden="true" #{"]"}

span.hidden aria-hidden="true" #{"["}
a href="#{summary_user_path(author)}"
  -if author.author_rep_pct
    -if author.author_rep_pct >= 90
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-gold.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -elsif author.author_rep_pct >= 75
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-silver.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -elsif author.author_rep_pct >= 50
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-bronze.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    -else
      span.glyphicon.glyphicon-equalizer.author-rep.author-rep-white.tooltips title="Author contribution score: #{author.author_rep_pct.floor}"
    span.sr-only Author with contribution score of #{author.author_rep_pct.floor}
  -else
    span.glyphicon.glyphicon-equalizer.author-rep.author-rep-white.tooltips title="Author contribution score: 0"
    span.sr-only Author with contribution score of 0
span.hidden aria-hidden="true" #{"]"}

Correct display of author rep trophy when author rep is 0
Correct display of author rep trophy when author rep is 0

nbgallery/nbgallery,nbgallery/nbgallery,nbgallery/nbgallery,nbgallery/nbgallery