mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Have play buttons show 'Compete!' for arena levels on CourseDetails levels list
This commit is contained in:
parent
7a6c42b89f
commit
ee1e484dda
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue