Commit ffa234bc80465be160dc93fedeff1eb3ee1c15ba
1 parent
14db7042
Exists in
master
and in
4 other branches
Dont render event body if empty
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/events/event/_common.html.haml
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | = link_to_project event.project | 10 | = link_to_project event.project |
| 11 | - else | 11 | - else |
| 12 | = event.project_name | 12 | = event.project_name |
| 13 | -.event-body | ||
| 14 | - .event-note | ||
| 15 | - - if event.target.respond_to?(:title) | 13 | +- if event.target.respond_to?(:title) |
| 14 | + .event-body | ||
| 15 | + .event-note | ||
| 16 | = event.target.title | 16 | = event.target.title |