Commit 5a12bee37d39118c177d1b95b8e38e0d16eef559
1 parent
0f83558b
Exists in
master
and in
4 other branches
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,9 +5,12 @@ | ||
| 5 | - if update.kind_of? Note | 5 | - if update.kind_of? Note |
| 6 | %p | 6 | %p |
| 7 | %strong | 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 | = image_tag gravatar_icon(update.author_email), :class => "", :width => 16 | 15 | = image_tag gravatar_icon(update.author_email), :class => "", :width => 16 |
| 13 | = truncate dashboard_feed_title(update), :length => 50 | 16 | = truncate dashboard_feed_title(update), :length => 50 |