From 71bea1cd7620438256f75d511de2dd4b5ed618b6 Mon Sep 17 00:00:00 2001 From: Lynx Kotoura Date: Sun, 30 Jul 2017 19:56:04 +0900 Subject: [PATCH] Set contact address in about/more as mailto link (#4450) * Set contact address as mailto link To be able to copy long email address * Set style for mailto link --- app/javascript/styles/about.scss | 3 ++- app/views/about/_contact.html.haml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/styles/about.scss b/app/javascript/styles/about.scss index 3258f1b8d0..1c5f13e329 100644 --- a/app/javascript/styles/about.scss +++ b/app/javascript/styles/about.scss @@ -147,9 +147,10 @@ white-space: nowrap; overflow: hidden; - span { + a { font-weight: 400; color: lighten($ui-base-color, 34%); + text-decoration: none; } } } diff --git a/app/views/about/_contact.html.haml b/app/views/about/_contact.html.haml index 8226399622..81b7db61f4 100644 --- a/app/views/about/_contact.html.haml +++ b/app/views/about/_contact.html.haml @@ -2,7 +2,7 @@ .panel-header = succeed ':' do = t 'about.contact' - %span{ title: contact.site_contact_email.presence }= contact.site_contact_email.presence + = mail_to contact.site_contact_email.presence, nil, :title => contact.site_contact_email.presence .panel-body - if contact.contact_account .owner