From aeae9b4a6bf93b41d9471d8a446bacf97b5d015e Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 1 Jun 2012 17:24:17 +1200 Subject: [PATCH] Fix #186 - Ensure comment has a user. --- app/views/errs/_table.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/errs/_table.html.haml b/app/views/errs/_table.html.haml index c91ffa6..7fc5fa3 100644 --- a/app/views/errs/_table.html.haml +++ b/app/views/errs/_table.html.haml @@ -30,7 +30,8 @@ - comment = problem.comments.last %br .inline_comment - %em.commenter= (Errbit::Config.user_has_username ? comment.user.username : comment.user.email).to_s << ":" + - if comment.user + %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' -- libgit2 0.21.2