Switched ladder views to display red/blue team instead of humans/ogres.

This commit is contained in:
Nick Winter 2015-09-03 15:46:56 -07:00
parent 89c644e084
commit d92ca389d6
5 changed files with 8 additions and 4 deletions

View file

@ -1084,6 +1084,8 @@
red_ai: "Red AI" # "Red AI Wins", at end of multiplayer match playback
blue_ai: "Blue AI"
wins: "Wins" # At end of multiplayer match playback
humans: "Red" # Ladder page display team name
ogres: "Blue"
user:
stats: "Stats"

View file

@ -7,7 +7,7 @@ div#columns.row
tr
th(colspan=level.get('type', true) == 'hero-ladder' ? 3 : 2)
th(colspan=4, style="color: #{team.primaryColor}")
span= team.name
span= team.displayName
span.spl(data-i18n="ladder.leaderboard") Leaderboard
tr
th(colspan=level.get('type', true) == 'hero-ladder' ? 3 : 2)

View file

@ -105,7 +105,7 @@ block content
a(class="play-button btn btn-illustrated btn-block btn-lg " + (team.id == 'ogres' ? 'btn-primary' : 'btn-danger'), data-team=team.id)
span(data-i18n="play.play_as") Play As
|
span= team.name
span= team.displayName
div.column.col-md-2
.spectate-button-container

View file

@ -6,7 +6,7 @@ div#columns.row
tr
th(colspan=5, style="color: #{team.primaryColor}")
span(data-i18n="ladder.summary_your") Your
|#{team.name}
|#{team.displayName}
|
span(data-i18n="ladder.summary_matches") Matches -
|#{team.wins}
@ -49,7 +49,7 @@ div#columns.row
else
span(data-i18n="ladder.defeat_the") Defeat the
|
| #{team.otherTeam}
| #{team.otherTeamDisplayName}
if !team.matches.length
tr

View file

@ -14,7 +14,9 @@ module.exports.teamDataFromLevel = (level) ->
teams.push({
id: team
name: _.string.titleize(team)
displayName: $.i18n.t("ladder.#{team}") # Use Red/Blue instead of Humans/Ogres
otherTeam: otherTeam
otherTeamDisplayName: $.i18n.t("ladder.#{otherTeam}")
bgColor: bgColor
primaryColor: primaryColor
})