add percentages to progress bars; tidy translation

* If the current language is English, the second "English" column will
  no longer display.
* Progress bars have percentages again.
* Some jade logic has been simplified.
This commit is contained in:
Douglas Gardner 2013-04-21 15:11:34 +00:00
parent 151d0e6fcb
commit 0376926dfc

View File

@ -35,9 +35,6 @@ html(lang='#{curr839}')
th #{openmilestone} th #{openmilestone}
th #{closedmilestone} th #{closedmilestone}
each milestone in milestones each milestone in milestones
- var mstone = "milestone"
- var wd = "width:"
- var pc = "%"
- var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100) - var wdth = ((milestone.closed_issues/(milestone.open_issues + milestone.closed_issues))*100)
tr(id=mstone+milestone.number) tr(id=mstone+milestone.number)
td td
@ -45,8 +42,9 @@ html(lang='#{curr839}')
#{milestone.title} #{milestone.title}
td td
div.progress(class=milestone.state) div.progress(class=milestone.state)
div.progress-inner(style=wd+wdth+pc)(class=milestone.state) div.progress-inner(style="width:"+wdth+"%")(class=milestone.state)
   
print #{Math.round(wdth)+"%"}
td #{milestone.open_issues} td #{milestone.open_issues}
td #{milestone.closed_issues} td #{milestone.closed_issues}
h4 #{languagetranshead} h4 #{languagetranshead}
@ -54,6 +52,7 @@ html(lang='#{curr839}')
tr tr
th #{languagecurr} th #{languagecurr}
th #{languagenati} th #{languagenati}
unless (curr839 == "en")
th #{languageeng} th #{languageeng}
th #{languageprog} th #{languageprog}
th #{languagetrans} th #{languagetrans}
@ -62,16 +61,19 @@ html(lang='#{curr839}')
tr tr
td #{language.local} td #{language.local}
td #{language.own} td #{language.own}
unless (curr839 == "en")
td #{language.english} td #{language.english}
td.prog td.prog
unless (language.iso == curr839) unless (language.iso == curr839)
div.progress(class="open") div.progress(class="open")
div.progress-inner(style="width:"+w+"%")(class="open") div.progress-inner(style="width:"+w+"%")(class="open")
   
print #{Math.round(w)+"%"}
else else
div.progress(class="closed") div.progress(class="closed")
div.progress-inner(style="width:"+w+"%")(class="closed") div.progress-inner(style="width:"+w+"%")(class="closed")
   
print #{Math.round(w)+"%"}
td #{language.count} / #{translation.en.count} td #{language.count} / #{translation.en.count}
h4 #{credits} h4 #{credits}
#{thanks} #{thanks}