mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 16:33:38 -04:00
Added your score to the ladder/team view.
This commit is contained in:
parent
43a49b3e6f
commit
e48bdfa1a7
3 changed files with 14 additions and 1 deletions
app
|
@ -5,3 +5,8 @@
|
||||||
#competitors-column .well
|
#competitors-column .well
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
padding: 7px
|
padding: 7px
|
||||||
|
|
||||||
|
#your-score
|
||||||
|
margin-top: 20px
|
||||||
|
text-align: center
|
||||||
|
font-size: 20px
|
|
@ -15,7 +15,14 @@ block content
|
||||||
|
|
||||||
p
|
p
|
||||||
| After your first submission, your code will also continuously run against other players as they rank themselves.
|
| After your first submission, your code will also continuously run against other players as they rank themselves.
|
||||||
|
|
||||||
|
if matches.length
|
||||||
|
p#your-score
|
||||||
|
span Your Current Score:
|
||||||
|
span
|
||||||
|
strong= score
|
||||||
|
|
||||||
|
|
||||||
div#columns.row
|
div#columns.row
|
||||||
div#matches-column.col-md-6
|
div#matches-column.col-md-6
|
||||||
h3.pull-left Ranked Games
|
h3.pull-left Ranked Games
|
||||||
|
|
|
@ -90,6 +90,7 @@ module.exports = class LadderTeamView extends RootView
|
||||||
|
|
||||||
ctx.matches = (convertMatch(match) for match in @session.get('matches') or [])
|
ctx.matches = (convertMatch(match) for match in @session.get('matches') or [])
|
||||||
ctx.matches.reverse()
|
ctx.matches.reverse()
|
||||||
|
ctx.score = (@session.get('totalScore') or 10).toFixed(2)
|
||||||
ctx
|
ctx
|
||||||
|
|
||||||
afterRender: ->
|
afterRender: ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue