Commit aeae9b4a6bf93b41d9471d8a446bacf97b5d015e
1 parent
0730cba1
Exists in
master
and in
1 other branch
Fix #186 - Ensure comment has a user.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/views/errs/_table.html.haml
... | ... | @@ -30,7 +30,8 @@ |
30 | 30 | - comment = problem.comments.last |
31 | 31 | %br |
32 | 32 | .inline_comment |
33 | - %em.commenter= (Errbit::Config.user_has_username ? comment.user.username : comment.user.email).to_s << ":" | |
33 | + - if comment.user | |
34 | + %em.commenter= (Errbit::Config.user_has_username ? comment.user.username : comment.user.email).to_s << ":" | |
34 | 35 | %em= truncate(comment.body, :length => 100, :separator => ' ') |
35 | 36 | %td.latest #{time_ago_in_words(last_notice_at problem)} ago |
36 | 37 | %td.deploy= problem.last_deploy_at ? problem.last_deploy_at.to_s(:micro) : 'n/a' | ... | ... |