Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
hide approved figure if its zero in version page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 10, 2015
1 parent 5d586db commit 44ff901
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions zanata-war/src/main/webapp/iteration/view.xhtml
Expand Up @@ -207,8 +207,8 @@
<strong>#{versionHomeAction.overallStatistic.total} words</strong>
</p>
<ul class="g--tight g--fit">
<s:fragment
rendered="#{versionHome.instance.requireTranslationReview}">
<ui:param name="showApproved" value="#{versionHomeAction.overallStatistic.percentApproved ne 0}"/>
<s:fragment rendered="#{showApproved}">
<li class="g__item l--push-bottom-half">
<span class="stats txt--state-highlight">
<span class="stats__figure">
Expand All @@ -222,7 +222,7 @@

<li class="g__item l--push-bottom-half">
<span
class="txt--state-success #{versionHome.instance.requireTranslationReview ? 'stats' : 'stats--large'}">
class="txt--state-success #{showApproved ? 'stats' : 'stats--large'}">
<span class="stats__figure">
#{statisticBar.formatPercentage(versionHomeAction.overallStatistic.percentTranslated)}%
</span>
Expand All @@ -231,8 +231,7 @@
</span>
</li>
<li class="g__item l--push-bottom-half">
<span
class="#{versionHome.instance.requireTranslationReview ? 'stats' : 'stats--large'}">
<span class="#{showApproved ? 'stats' : 'stats--large'}">
<span class="stats__figure">
#{statisticBar.formatHours(versionHomeAction.overallStatistic.remainingHours)}
</span>
Expand Down

0 comments on commit 44ff901

Please sign in to comment.