Commit a87841b01f7e9c6251886c0f2264d0d43e69452a

Authored by Nathan Broadbent
1 parent 8777ab20
Exists in master and in 1 other branch production

Fixed revision change

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
app/views/apps/index.html.haml
... ... @@ -13,8 +13,11 @@
13 13 %tr
14 14 %td.name= link_to app.name, app_path(app)
15 15 %td.deploy
16   - - revision = app.deploys.last.short_revision
17   - = app.last_deploy_at ? link_to( app.last_deploy_at.to_s(:micro) << (revision.present? ? " (#{revision})" : ""), app_deploys_path(app)) : 'n/a'
  16 + - if app.last_deploy_at
  17 + - revision = app.deploys.last.short_revision
  18 + = link_to( app.last_deploy_at.to_s(:micro) << (revision.present? ? " (#{revision})" : ""), app_deploys_path(app))
  19 + - else
  20 + 'n/a'
18 21 %td.count
19 22 - if app.errs.count > 0
20 23 - unresolved = @unresolved_counts[app.id]
... ...