diff --git a/app/views/errs/_table.html.haml b/app/views/errs/_table.html.haml index 1bdec48..55eac8f 100644 --- a/app/views/errs/_table.html.haml +++ b/app/views/errs/_table.html.haml @@ -22,6 +22,12 @@ %td.message = link_to err.message, app_err_path(err.app, err) %em= err.where + - if err.comments.any? + - comment = err.comments.last + %br + .inline_comment + %em.commenter= (Errbit::Config.user_has_username ? comment.user.username : comment.user.email).to_s << ":" + %em= truncate(comment.body, :length => 100, :separator => ' ') %td.latest #{time_ago_in_words(last_notice_at err)} ago %td.deploy= err.app.last_deploy_at ? err.app.last_deploy_at.to_s(:micro) : 'n/a' %td.count= link_to err.notices_count, app_err_path(err.app, err) diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index e7e471d..f411938 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -628,6 +628,7 @@ table.errs td.message em { color: #727272; font-size: 0.9em; } + table.errs tr.resolved td > * { opacity: 0.5; -moz-opacity: 0.5; @@ -736,4 +737,20 @@ table.comment tbody td { #content-comments #comment_submit { margin-top: 15px; } +/* Inline comments in tables */ +table.errs tr td.message .inline_comment { + display: inline-block; + padding: 3px 7px; + margin: 6px 0; + background-color: #F5F5F5; + border: 1px solid #E6E6E6; +} +table.errs tr:hover td.message .inline_comment { + background-color: #EEEEEE; + border-color: #DFDFDF; +} + +table.errs tr td.message .inline_comment em.commenter { + color: #999999; +} -- libgit2 0.21.2