From 5a12bee37d39118c177d1b95b8e38e0d16eef559 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 5 Feb 2012 12:26:27 +0200 Subject: [PATCH] fix 500 on project page after someone leave note on wall --- app/views/projects/show.html.haml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index d388f5bd5..349ad4d9d 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -5,9 +5,12 @@ - if update.kind_of? Note %p %strong - = update.target.class.name.titleize - = truncate update.target.id.to_s, :length => 10 - commented + - if update.target + = update.target.class.name.titleize + = truncate update.target.id.to_s, :length => 10 + commented + - else + Project wall – = image_tag gravatar_icon(update.author_email), :class => "", :width => 16 = truncate dashboard_feed_title(update), :length => 50 -- 2.11.0