Commit a7d447f54335c43adeb4264bd1ca2340b0b66685
Exists in
master
and in
1 other branch
Merge pull request #101 from gorenje/problem_listing_improvements
Problem listing improvements
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
app/views/errs/_table.html.haml
... | ... | @@ -26,6 +26,12 @@ |
26 | 26 | %td.message |
27 | 27 | = link_to trucated_err_message(problem), app_err_path(problem.app, problem) |
28 | 28 | %em= problem.where |
29 | + - if problem.comments.any? | |
30 | + - comment = problem.comments.last | |
31 | + %br | |
32 | + .inline_comment | |
33 | + %em.commenter= (Errbit::Config.user_has_username ? comment.user.username : comment.user.email).to_s << ":" | |
34 | + %em= truncate(comment.body, :length => 100, :separator => ' ') | |
29 | 35 | %td.latest #{time_ago_in_words(last_notice_at problem)} ago |
30 | 36 | %td.deploy= problem.last_deploy_at ? problem.last_deploy_at.to_s(:micro) : 'n/a' |
31 | 37 | %td.count= link_to problem.notices.count, app_err_path(problem.app, problem) | ... | ... |