Commit 8777ab207f4722f6c36ad72607cb1c7155176835

Authored by Nathan Broadbent
1 parent 6cc63352
Exists in master and in 1 other branch production

Only show revision if present

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
app/views/apps/index.html.haml
... ... @@ -12,7 +12,9 @@
12 12 - @apps.each do |app|
13 13 %tr
14 14 %td.name= link_to app.name, app_path(app)
15   - %td.deploy= app.last_deploy_at ? link_to( app.last_deploy_at.to_s(:micro) << " (#{app.deploys.last.short_revision})", app_deploys_path(app)) : 'n/a'
  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 18 %td.count
17 19 - if app.errs.count > 0
18 20 - unresolved = @unresolved_counts[app.id]
... ...