fix 500 on project page after someone leave note on wall
This commit is contained in:
parent
0f83558bea
commit
5a12bee37d
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue