Tweak style and add i18n for #3280

This commit is contained in:
Nick Winter 2015-12-24 06:34:54 -08:00
parent 00fe5a6c0c
commit c0d58c3786
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,7 @@ block append content
span(data-i18n="user.favorite_postfix") .
if playerLevel
div.extra-info
span Level
span.spr(data-i18n="general.player_level") Level
strong= playerLevel
- var emails = user.getEnabledEmails()
// TODO: fix this, use some other method for finding contributor classes other than email settings, since they're private... Maybe achievements?

View file

@ -46,11 +46,10 @@ module.exports = class MainUserView extends UserView
if count > mostUsedCount
mostUsedCount = count
favoriteLanguage = language
playerLevel = @user.level()
context.singlePlayerSessions = singlePlayerSessions
context.multiPlayerSessions = multiPlayerSessions
context.favoriteLanguage = favoriteLanguage
context.playerLevel = playerLevel
context.playerLevel = @user.level()
if @earnedAchievements and @earnedAchievements.loaded
context.earnedAchievements = @earnedAchievements
if @clans and @clans.loaded