fix 500 on project page after someone leave note on wall

This commit is contained in:
Dmitriy Zaporozhets 2012-02-05 12:26:27 +02:00
parent 0f83558bea
commit 5a12bee37d

View file

@ -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