mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-27 05:11:29 -04:00
Course victory modal current and next level names
This commit is contained in:
parent
4cc71bd0e6
commit
24345cf296
3 changed files with 54 additions and 18 deletions
|
@ -403,6 +403,26 @@
|
|||
font-family: $headings-font-family
|
||||
text-shadow: black 2px 2px 0, black -2px -2px 0, black 2px -2px 0, black -2px 2px 0, black 2px 0px 0, black 0px -2px 0, black -2px 0px 0, black 0px 2px 0
|
||||
|
||||
.level-title
|
||||
z-index: 1
|
||||
margin: 10px
|
||||
font-size: 24px
|
||||
color: $hero-yellow-text
|
||||
font-weight: bold
|
||||
text-transform: uppercase
|
||||
font-family: $headings-font-family
|
||||
text-shadow: black 2px 2px 0, black -2px -2px 0, black 2px -2px 0, black -2px 2px 0, black 2px 0px 0, black 0px -2px 0, black -2px 0px 0, black 0px 2px 0
|
||||
|
||||
.level-name
|
||||
z-index: 1
|
||||
text-align: center
|
||||
font-size: 18px
|
||||
color: white
|
||||
font-weight: bold
|
||||
text-transform: uppercase
|
||||
font-family: $headings-font-family
|
||||
text-shadow: black 2px 2px 0, black -2px -2px 0, black 2px -2px 0, black -2px 2px 0, black 2px 0px 0, black 0px -2px 0, black -2px 0px 0, black 0px 2px 0
|
||||
|
||||
#level-feedback
|
||||
color: $hero-yellow-text
|
||||
font-weight: bold
|
||||
|
|
|
@ -11,6 +11,19 @@ block modal-body-content
|
|||
if victoryText
|
||||
#victory-text= victoryText
|
||||
|
||||
if isCourseLevel
|
||||
.container-fluid
|
||||
.row
|
||||
.col-md-6
|
||||
if currentLevelName
|
||||
.level-title Completed Level:
|
||||
.level-name= currentLevelName
|
||||
.col-md-6
|
||||
if nextLevelName
|
||||
.level-title Next Level:
|
||||
.level-name= nextLevelName
|
||||
br
|
||||
|
||||
#level-feedback
|
||||
div.rating.secret
|
||||
div.rating-label(data-i18n="play_level.victory_rate_the_level") Rate the level:
|
||||
|
|
|
@ -209,6 +209,9 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
c.showLeaderboard = @level.get('scoreTypes')?.length > 0 and @level.get('type', true) isnt 'course'
|
||||
|
||||
c.showReturnToCourse = not c.showLeaderboard and not me.get('anonymous') and @level.get('type', true) in ['course', 'course-ladder']
|
||||
c.isCourseLevel = @level.get('type', true) in ['course']
|
||||
c.currentLevelName = @level?.get('name')
|
||||
c.nextLevelName = @nextLevel?.get('name')
|
||||
|
||||
return c
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue