Commit 24d910a6a47ae5dc42db14f7d191516156f57523
Exists in
master
and in
1 other branch
Merge pull request #96 from martinciu/master
Two small fixes
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/notice.rb
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 | \- | ... | ... |