mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Tweaked the name column size in the ladder view.
This commit is contained in:
parent
367b1c2007
commit
7261f9960c
2 changed files with 10 additions and 2 deletions
|
@ -13,3 +13,10 @@
|
|||
#simulation-status-text
|
||||
display: inline
|
||||
margin-left: 10px
|
||||
|
||||
.name-col-cell
|
||||
max-width: 300px
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
overflow: hidden
|
||||
|
|
@ -26,13 +26,14 @@ block content
|
|||
span Leaderboard
|
||||
tr
|
||||
th Score
|
||||
th Name
|
||||
th.name-col-cell Name
|
||||
th
|
||||
|
||||
for session in team.leaderboard.topPlayers.models
|
||||
- var myRow = session.get('creator') == me.id
|
||||
tr(class=myRow ? "success" : "")
|
||||
td.score-cell= session.get('totalScore').toFixed(2)
|
||||
td= session.get('creatorName') || "Anonymous"
|
||||
td.name-col-cell= session.get('creatorName') || "Anonymous"
|
||||
td
|
||||
if(!myRow)
|
||||
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") Battle as #{team.otherTeam}!
|
||||
|
|
Loading…
Reference in a new issue