Have play buttons show 'Compete!' for arena levels on CourseDetails levels list

This commit is contained in:
Scott Erickson 2015-11-18 14:08:25 -08:00
parent 7a6c42b89f
commit ee1e484dda
2 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,7 @@
play:
play_as: "Play As" # Ladder page
compete: "Compete!" # Course details page
spectate: "Spectate" # Ladder page
players: "players" # Hover over a level on /play
hours_played: "hours played" # Hover over a level on /play

View file

@ -273,7 +273,8 @@ mixin levels-tab
tr
td
if lastLevelCompleted || adminMode
button.btn.btn-success.btn-play-level(data-level-slug=level.slug, data-i18n="home.play", data-level-id=levelID)
- var i18n = level.type === 'course-ladder' ? 'play.compete' : 'home.play';
button.btn.btn-success.btn-play-level(data-level-slug=level.slug, data-i18n=i18n, data-level-id=levelID)
td
if userLevelStateMap[me.id]
div= userLevelStateMap[me.id][levelID]