From e0dbd396e14af059bacf37c07f0383e01b8e27c8 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 3 Feb 2017 20:30:28 +0100 Subject: [PATCH] Hide break in shared group template if empty --- app/views/shared/_group.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_group.html.haml b/app/views/shared/_group.html.haml index 25a75d1d..3386aaab 100644 --- a/app/views/shared/_group.html.haml +++ b/app/views/shared/_group.html.haml @@ -6,8 +6,8 @@ %dd=h group.contact %dt= heading_helper(Ordergroup, :contact_address) + ':' %dd= link_to_gmaps group.contact_address - %dt= heading_helper(Ordergroup, :break) + ':' - if group.break_start? or group.break_end? + %dt= heading_helper(Ordergroup, :break) + ':' %dd= raw t '.break', start: format_date(group.break_start), end: format_date(group.break_end) - if group.is_a?(Workgroup) %dt= t('.access') + ':'