Merge pull request #458 from foodcoop1040/break

Hide break in shared group template if empty
This commit is contained in:
wvengen 2017-02-03 23:05:22 +01:00 committed by GitHub
commit 46275fa564

View file

@ -6,8 +6,8 @@
%dd=h group.contact %dd=h group.contact
%dt= heading_helper(Ordergroup, :contact_address) + ':' %dt= heading_helper(Ordergroup, :contact_address) + ':'
%dd= link_to_gmaps group.contact_address %dd= link_to_gmaps group.contact_address
%dt= heading_helper(Ordergroup, :break) + ':'
- if group.break_start? or group.break_end? - 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) %dd= raw t '.break', start: format_date(group.break_start), end: format_date(group.break_end)
- if group.is_a?(Workgroup) - if group.is_a?(Workgroup)
%dt= t('.access') + ':' %dt= t('.access') + ':'