From 6e2f33cad55f9a0eacaead4320a32735f0d12757 Mon Sep 17 00:00:00 2001 From: Marcin Ciunelis Date: Tue, 27 Sep 2011 17:50:02 +0200 Subject: [PATCH] show error count when there is only one app --- app/views/apps/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/apps/index.html.haml b/app/views/apps/index.html.haml index 4a4afa2..f55afa8 100644 --- a/app/views/apps/index.html.haml +++ b/app/views/apps/index.html.haml @@ -20,7 +20,7 @@ n/a %td.count - if app.problems.count > 0 - - unresolved = @unresolved_counts[app.id] + - unresolved = @unresolved_counts[app.id] || app.problems.unresolved.count = link_to unresolved, app_path(app), :class => (unresolved == 0 ? "resolved" : nil) - else \- -- libgit2 0.21.2