mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 11:50:58 -04:00
A couple ladder tweaks.
This commit is contained in:
parent
ca1e3742c0
commit
9e4908ade2
3 changed files with 4 additions and 2 deletions
app
|
@ -101,6 +101,8 @@ module.exports = class Simulator extends CocoClass
|
|||
handleTaskResultsTransferSuccess: (result) =>
|
||||
console.log "Task registration result: #{JSON.stringify result}"
|
||||
@trigger 'statusUpdate', 'Results were successfully sent back to server!'
|
||||
simulatedBy = parseInt($('#simulated-by-you').text(), 10) + 1
|
||||
$('#simulated-by-you').text(simulatedBy)
|
||||
|
||||
handleTaskResultsTransferError: (error) =>
|
||||
@trigger 'statusUpdate', 'There was an error sending the results back to the server.'
|
||||
|
|
|
@ -54,6 +54,6 @@ block content
|
|||
span#simulated-by-you= me.get('simulatedBy') || 0
|
||||
|
||||
p.simulation-count
|
||||
span(data-i18n="ladder.games_simulated_by") Games simulated for you:
|
||||
span(data-i18n="ladder.games_simulated_for") Games simulated for you:
|
||||
|
|
||||
span#simulated-for-you= me.get('simulatedFor') || 0
|
|
@ -27,7 +27,7 @@ div#columns.row
|
|||
a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}")
|
||||
span(data-i18n="ladder.fight") Fight!
|
||||
|
||||
if !inTheTop
|
||||
if !inTheTop && ! me.get('anonymous')
|
||||
tr(class="active")
|
||||
td(colspan=4).ellipsis-row ...
|
||||
for session in team.leaderboard.nearbySessions()
|
||||
|
|
Loading…
Add table
Reference in a new issue