mirror of
https://github.com/internetee/registry.git
synced 2025-06-13 08:04:45 +02:00
Remove unecessary handling of newlines in contact views
This commit is contained in:
parent
1fd70df6db
commit
255706fb45
3 changed files with 2 additions and 7 deletions
|
@ -1,5 +0,0 @@
|
||||||
module ContactHelper
|
|
||||||
def printable_street(street)
|
|
||||||
street.to_s.gsub("\n", '<br>').html_safe
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
- if contact.street.present?
|
- if contact.street.present?
|
||||||
%dt= t(:street)
|
%dt= t(:street)
|
||||||
%dd{class: changing_css_class(@version,"street")}= printable_street(contact.street)
|
%dd{class: changing_css_class(@version,"street")}= contact.street
|
||||||
|
|
||||||
- if contact.city.present?
|
- if contact.city.present?
|
||||||
%dt= t(:city)
|
%dt= t(:city)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
%dd= @contact.org_name
|
%dd= @contact.org_name
|
||||||
|
|
||||||
%dt= t(:street)
|
%dt= t(:street)
|
||||||
%dd= printable_street(@contact.street)
|
%dd= @contact.street
|
||||||
|
|
||||||
%dt= t(:city)
|
%dt= t(:city)
|
||||||
%dd= @contact.city
|
%dd= @contact.city
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue