Commit 5a12bee37d39118c177d1b95b8e38e0d16eef559

Authored by Dmitriy Zaporozhets
1 parent 0f83558b

fix 500 on project page after someone leave note on wall

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
app/views/projects/show.html.haml
... ... @@ -5,9 +5,12 @@
5 5 - if update.kind_of? Note
6 6 %p
7 7 %strong
8   - = update.target.class.name.titleize
9   - = truncate update.target.id.to_s, :length => 10
10   - commented
  8 + - if update.target
  9 + = update.target.class.name.titleize
  10 + = truncate update.target.id.to_s, :length => 10
  11 + commented
  12 + - else
  13 + Project wall
11 14 –
12 15 = image_tag gravatar_icon(update.author_email), :class => "", :width => 16
13 16 = truncate dashboard_feed_title(update), :length => 50
... ...