mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Only showing general i18n coverage for languages with more than one family.
This commit is contained in:
parent
502a47e912
commit
155246173a
2 changed files with 5 additions and 2 deletions
|
@ -14,7 +14,8 @@ block content
|
|||
th Translated Name
|
||||
th Type
|
||||
th Specifically Covered
|
||||
th Generally Covered
|
||||
if showGeneralCoverage
|
||||
th Generally Covered
|
||||
|
||||
if selectedLanguage
|
||||
for model in collection.models
|
||||
|
@ -29,4 +30,5 @@ block content
|
|||
td= translatedName
|
||||
td= model.constructor.className
|
||||
td(class=model.specificallyCovered ? 'success' : 'danger')= model.specificallyCovered ? 'Yes' : 'No'
|
||||
td(class=model.generallyCovered ? 'success' : 'danger')= model.generallyCovered ? 'Yes' : 'No'
|
||||
if showGeneralCoverage
|
||||
td(class=model.generallyCovered ? 'success' : 'danger')= model.generallyCovered ? 'Yes' : 'No'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue