try making workers item view more robust

This commit is contained in:
Sven Fuchs 2012-10-07 17:05:29 +02:00
parent 02a1f166d5
commit a8f19aa687
4 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@
state = @get('worker.state')
payload = @get('worker.payload')
if state == 'working' && payload != undefined
if state == 'working' && payload?.repo && payload?.build
repo = payload.repo.slug
number = ' #' + payload.build.number
"<span class='name'>#{name}: #{repo}</span> #{number}".htmlSafe()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
1dcac772
dd0d0f5c