Added your score to the ladder/team view.

This commit is contained in:
Scott Erickson 2014-02-24 13:03:04 -08:00
parent 43a49b3e6f
commit e48bdfa1a7
3 changed files with 14 additions and 1 deletions
app
styles/play/ladder
templates/play/ladder
views/play/ladder

View file

@ -5,3 +5,8 @@
#competitors-column .well
font-size: 18px
padding: 7px
#your-score
margin-top: 20px
text-align: center
font-size: 20px

View file

@ -15,7 +15,14 @@ block content
p
| 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#matches-column.col-md-6
h3.pull-left Ranked Games

View file

@ -90,6 +90,7 @@ module.exports = class LadderTeamView extends RootView
ctx.matches = (convertMatch(match) for match in @session.get('matches') or [])
ctx.matches.reverse()
ctx.score = (@session.get('totalScore') or 10).toFixed(2)
ctx
afterRender: ->