From 240938c949dfb7f3a01c8f4171849f21231cdcac Mon Sep 17 00:00:00 2001 From: Gerrit Riessen Date: Sun, 2 Oct 2011 09:12:18 +0200 Subject: [PATCH] readded the last comment (if any) to the listing of the errors --- app/views/errs/_table.html.haml | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/app/views/errs/_table.html.haml b/app/views/errs/_table.html.haml index ebf57f9..cea95cc 100644 --- a/app/views/errs/_table.html.haml +++ b/app/views/errs/_table.html.haml @@ -26,6 +26,12 @@ %td.message = link_to trucated_err_message(problem), app_err_path(problem.app, problem) %em= problem.where + - if problem.comments.any? + - comment = problem.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 problem)} ago %td.deploy= problem.last_deploy_at ? problem.last_deploy_at.to_s(:micro) : 'n/a' %td.count= link_to problem.notices.count, app_err_path(problem.app, problem) -- libgit2 0.21.2