From ffa234bc80465be160dc93fedeff1eb3ee1c15ba Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 16 Aug 2013 15:40:55 +0300 Subject: [PATCH] Dont render event body if empty --- app/views/events/event/_common.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/events/event/_common.html.haml b/app/views/events/event/_common.html.haml index 05d3832..6989f86 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 -- libgit2 0.21.2