Cleaner html

This commit is contained in:
echarp 2020-01-01 23:12:42 +01:00
parent 6b6060bd97
commit 303e92663d
2 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,7 @@
%p
%em.fa.fa-external-link-alt
%span.label= Event.human_attribute_name :url
= link_to @event.url, @event.url.html_safe
= link_to @event.url
- if @event.contact.present?
%p
%em.fa.fa-envelope

View File

@ -14,7 +14,8 @@
%span.place_name= @orga.place_name
- if @orga.address.present?
%span.address= @orga.address
%span.city= @orga.city
- if @orga.city.present?
%span.city= @orga.city
%span.region
= t @orga.region.code.present? ? @orga.region.code : @orga.region.name,
scope: :countries, default: @orga.region.name
@ -42,7 +43,7 @@
%dt.url
%em.fa.fa-external-link-alt
= Orga.human_attribute_name :url
%dd= link_to @orga.url, @orga.url.html_safe
%dd= link_to @orga.url
- if @orga.diaspora.present?
%dt.diaspora<
= Orga.human_attribute_name :diaspora