about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-30 23:24:18 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-30 16:24:18 +0200
commitf91284d230c261baa6adc1764cad08b561c5ba67 (patch)
tree06114b3091471a471b5bf7851896e208909ce375 /app/views
parentfeadf7553dbdc4b0db5cabe6c62791232b59f8aa (diff)
Do not create empty a element when there is no e-mail (#4455)
Empty a element is created when there is no business e-mail input.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/about/_contact.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/about/_contact.html.haml b/app/views/about/_contact.html.haml
index 81b7db61f..cf21ad5a3 100644
--- a/app/views/about/_contact.html.haml
+++ b/app/views/about/_contact.html.haml
@@ -2,7 +2,10 @@
   .panel-header
     = succeed ':' do
       = t 'about.contact'
-    = mail_to contact.site_contact_email.presence, nil, :title => contact.site_contact_email.presence
+    - if contact.site_contact_email.present?
+      = mail_to contact.site_contact_email, nil, title: contact.site_contact_email
+    - else
+      %span= t 'about.contact_unavailable'
   .panel-body
     - if contact.contact_account
       .owner