Commit 6e2f33cad55f9a0eacaead4320a32735f0d12757

Authored by Marcin Ciunelis
1 parent 4075b575
Exists in master and in 1 other branch production

show error count when there is only one app

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/apps/index.html.haml
... ... @@ -20,7 +20,7 @@
20 20 n/a
21 21 %td.count
22 22 - if app.problems.count > 0
23   - - unresolved = @unresolved_counts[app.id]
  23 + - unresolved = @unresolved_counts[app.id] || app.problems.unresolved.count
24 24 = link_to unresolved, app_path(app), :class => (unresolved == 0 ? "resolved" : nil)
25 25 - else
26 26 \-
... ...