Commit 240938c949dfb7f3a01c8f4171849f21231cdcac
1 parent
4aea975f
Exists in
master
and in
1 other branch
readded the last comment (if any) to the listing of the errors
On branch: master
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) | ... | ... |