Only showing general i18n coverage for languages with more than one family.

This commit is contained in:
Nick Winter 2015-04-22 13:13:24 -07:00
parent 502a47e912
commit 155246173a
2 changed files with 5 additions and 2 deletions

View file

@ -14,6 +14,7 @@ block content
th Translated Name
th Type
th Specifically Covered
if showGeneralCoverage
th Generally Covered
if selectedLanguage
@ -29,4 +30,5 @@ block content
td= translatedName
td= model.constructor.className
td(class=model.specificallyCovered ? 'success' : 'danger')= model.specificallyCovered ? 'Yes' : 'No'
if showGeneralCoverage
td(class=model.generallyCovered ? 'success' : 'danger')= model.generallyCovered ? 'Yes' : 'No'

View file

@ -73,6 +73,7 @@ module.exports = class I18NHomeView extends RootView
covered = (m for m in @aggregateModels.models when m.specificallyCovered).length
total = @aggregateModels.models.length
c.progress = if total then parseInt(100 * covered / total) else 100
c.showGeneralCoverage = /-/.test(@selectedLanguage ? 'en') # Only relevant for languages with more than one family, like zh-HANS
c