Fixed build links on worker's list

This commit is contained in:
Piotr Sarnacki 2012-10-09 16:41:13 +02:00
parent 67aacb7baa
commit 7f6210ec6c
5 changed files with 1457 additions and 1659 deletions

View File

@ -67,8 +67,8 @@
state = @get('worker.state') state = @get('worker.state')
payload = @get('worker.payload') payload = @get('worker.payload')
if state == 'working' && payload?.repo && payload?.build if state == 'working' && payload?.repository && payload?.build
repo = payload.repo.slug repo = payload.repository.slug
number = ' #' + payload.build.number number = ' #' + payload.build.number
"<span class='name'>#{name}: #{repo}</span> #{number}".htmlSafe() "<span class='name'>#{name}: #{repo}</span> #{number}".htmlSafe()
else else
@ -78,7 +78,3 @@
QueueItemView: Travis.View.extend QueueItemView: Travis.View.extend
tagName: 'li' tagName: 'li'
urlJob: (->
Travis.Urls.job(@get('job.repo.slug'), @get('job.id'))
).property('job.repo.slug', 'job.id')

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
010a68d3 0f288886