From a87841b01f7e9c6251886c0f2264d0d43e69452a Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 7 Sep 2011 10:29:19 +0800 Subject: [PATCH] Fixed revision change --- app/views/apps/index.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/apps/index.html.haml b/app/views/apps/index.html.haml index 6e1d6f3..460b47c 100644 --- a/app/views/apps/index.html.haml +++ b/app/views/apps/index.html.haml @@ -13,8 +13,11 @@ %tr %td.name= link_to app.name, app_path(app) %td.deploy - - revision = app.deploys.last.short_revision - = app.last_deploy_at ? link_to( app.last_deploy_at.to_s(:micro) << (revision.present? ? " (#{revision})" : ""), app_deploys_path(app)) : 'n/a' + - if app.last_deploy_at + - revision = app.deploys.last.short_revision + = link_to( app.last_deploy_at.to_s(:micro) << (revision.present? ? " (#{revision})" : ""), app_deploys_path(app)) + - else + 'n/a' %td.count - if app.errs.count > 0 - unresolved = @unresolved_counts[app.id] -- libgit2 0.21.2