Commit 637119cd2748180d4acbf19bc28aa7c0456e6cb7
1 parent
290d7e3a
Exists in
master
and in
1 other branch
If an app has zero unresolved errors, make the 'Errs' button green (in apps/index)
Showing
3 changed files
with
6 additions
and
1 deletions
Show diff stats
app/views/apps/index.html.haml
... | ... | @@ -15,7 +15,8 @@ |
15 | 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' |
16 | 16 | %td.count |
17 | 17 | - if app.errs.count > 0 |
18 | - = link_to app.errs.unresolved.count, app_path(app) | |
18 | + - unresolved = app.errs.unresolved.count | |
19 | + = link_to unresolved, app_path(app), :class => (unresolved == 0 ? "resolved" : nil) | |
19 | 20 | - else |
20 | 21 | \- |
21 | 22 | - if @apps.none? | ... | ... |
public/stylesheets/application.css
... | ... | @@ -600,6 +600,10 @@ td.count { |
600 | 600 | -moz-opacity: 0.8; |
601 | 601 | -webkit-opacity: 0.8 |
602 | 602 | } |
603 | +.count a.resolved { | |
604 | + background: #00cc33 url(images/resolved-badge-bg.png) 0 bottom repeat-x; | |
605 | + border: 1px solid #090; | |
606 | +} | |
603 | 607 | .count a:hover { |
604 | 608 | text-decoration: none; |
605 | 609 | opacity: 1; | ... | ... |
119 Bytes