Contact address is now displayed only when present
This commit is contained in:
parent
06d7538d73
commit
e1c2eb7b5d
@ -103,6 +103,7 @@
|
||||
%em.fa.fa-external-link-alt
|
||||
%span.label= Event.human_attribute_name :url
|
||||
= link_to @event.url, sanitize(@event.url)
|
||||
- if @event.contact.present?
|
||||
%p
|
||||
%em.fa.fa-envelope
|
||||
%span.label= Event.human_attribute_name :contact
|
||||
|
@ -8,8 +8,8 @@
|
||||
!= display_attr @event, :region, @event.region
|
||||
!= display_attr @event, :locality, t("attributes.locality_#{@event.locality}")
|
||||
!= display_attr @event, :url
|
||||
- if @event.contact.present?
|
||||
!= display_attr @event, :contact
|
||||
!= display_attr @event, :submitter
|
||||
!= display_attr @event, :tag_list, @event.tag_list
|
||||
- if @event.repeat > 0
|
||||
= display_attr @event, :repeat
|
||||
|
Loading…
Reference in New Issue
Block a user