]> cat aescling's git repositories - mastodon.git/commitdiff
Set contact address in about/more as mailto link (#4450)
authorLynx Kotoura <lynx@lv9.org>
Sun, 30 Jul 2017 10:56:04 +0000 (19:56 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 30 Jul 2017 10:56:04 +0000 (12:56 +0200)
* Set contact address as mailto link

To be able to copy long email address

* Set style for mailto link

app/javascript/styles/about.scss
app/views/about/_contact.html.haml

index 3258f1b8d088be6341643000efde9ffdf626ef5c..1c5f13e329b89d874e0e58ffbd01c7b5b0fe1b0a 100644 (file)
       white-space: nowrap;
       overflow: hidden;
 
-      span {
+      a {
         font-weight: 400;
         color: lighten($ui-base-color, 34%);
+        text-decoration: none;
       }
     }
   }
index 822639962224434d5767c140395fb4a8764986dc..81b7db61f473155dbae432657af5d32fed026b07 100644 (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