summaryrefslogtreecommitdiff
path: root/app/views/events/event
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-16 15:40:55 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-16 15:40:55 +0300
commitffa234bc80465be160dc93fedeff1eb3ee1c15ba (patch)
tree031f4d5f800fa4800a6df376c6e6d4df502d82c3 /app/views/events/event
parent14db7042316c7b47153a70b1cb1f07bb3b3430eb (diff)
downloadgitlab-ce-ffa234bc80465be160dc93fedeff1eb3ee1c15ba.tar.gz
Dont render event body if empty
Diffstat (limited to 'app/views/events/event')
-rw-r--r--app/views/events/event/_common.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/events/event/_common.html.haml b/app/views/events/event/_common.html.haml
index 05d3832c7f9..6989f862f47 100644
--- a/app/views/events/event/_common.html.haml
+++ b/app/views/events/event/_common.html.haml
@@ -10,7 +10,7 @@
= link_to_project event.project
- else
= event.project_name
-.event-body
- .event-note
- - if event.target.respond_to?(:title)
+- if event.target.respond_to?(:title)
+ .event-body
+ .event-note
= event.target.title