Browse Source

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
master
Lynx Kotoura 7 years ago
committed by Eugen Rochko
parent
commit
ea33cdc30b
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      app/javascript/styles/about.scss
  2. +1
    -1
      app/views/about/_contact.html.haml

+ 2
- 1
app/javascript/styles/about.scss View File

@ -147,9 +147,10 @@
white-space: nowrap;
overflow: hidden;
span {
a {
font-weight: 400;
color: lighten($ui-base-color, 34%);
text-decoration: none;
}
}
}

+ 1
- 1
app/views/about/_contact.html.haml View File

@ -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

Loading…
Cancel
Save