From 22c9e9685f85adc5b6d6c1921fd66530c84b9ff5 Mon Sep 17 00:00:00 2001 From: leizzer Date: Tue, 17 Dec 2013 13:40:50 -0300 Subject: [PATCH] Adding css for resolved problems to make it easy to identify solved problems in show view --- app/assets/stylesheets/errbit.css | 4 ++++ app/views/problems/show.html.haml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/errbit.css b/app/assets/stylesheets/errbit.css index 064e37b..f9cf7c6 100644 --- a/app/assets/stylesheets/errbit.css +++ b/app/assets/stylesheets/errbit.css @@ -173,6 +173,10 @@ a.action { float: right; font-size: 0.9em;} padding: 43px 24px 37px; } +#content-title.err_show.resolved{ + background-color: #90EE90; +} + #content-comments { background-color: #ffffff; } diff --git a/app/views/problems/show.html.haml b/app/views/problems/show.html.haml index ac8f353..3f1cf39 100644 --- a/app/views/problems/show.html.haml +++ b/app/views/problems/show.html.haml @@ -1,5 +1,5 @@ - content_for :page_title, problem.message -- content_for :title_css_class, 'err_show' +- content_for :title_css_class, "err_show #{'resolved' if problem.resolved?}" - content_for :title, problem.error_class || truncate(problem.message, :length => 32) - content_for :meta do %strong App: -- libgit2 0.21.2