codecombat/app/templates/i18n/i18n-home-view.jade

35 lines
1.2 KiB
Text
Raw Normal View History

extends /templates/base
block content
if selectedLanguage
.progress
.progress-bar.progress-bar-info(role="progressbar" aria-valuenow=progress aria-valuemin="0" aria-valuemax="100" style="width: "+progress+"%")= progress+"%"
table.table.table-condensed
tr
th
select#language-select.form-control.input-sm
option(value='') Select one...
2015-03-18 18:44:23 -04:00
th Translated Name
th Type
th Specifically Covered
if showGeneralCoverage
th Generally Covered
if selectedLanguage
for model in collection.models
2015-03-18 18:44:23 -04:00
-var translatedName = ''
-if (model.get('i18n') != undefined)
-if (model.get('i18n').hasOwnProperty(selectedLanguage))
-translatedName = model.get('i18n')[selectedLanguage].name
tr
td
a(href=model.i18nURLBase+model.get('slug'))= model.get('name')
2015-03-18 18:44:23 -04:00
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'