Have campaign-view translate campaign name normally

This commit is contained in:
Scott Erickson 2016-08-30 10:49:45 -07:00
parent a168ee905c
commit be11c47e17

View file

@ -200,10 +200,7 @@ if view.showAds()
h1#campaign-status.picoctf-hide h1#campaign-status.picoctf-hide
.campaign-status-background .campaign-status-background
.campaign-name .campaign-name
- var fullName = i18n(campaign.attributes, 'fullName') span= i18n(campaign.attributes, 'fullName')
if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'en' || fullName != campaign.get('fullName')
// We have a translation.
span= fullName
.levels-completed .levels-completed
span= levelsCompleted span= levelsCompleted
| / | /