]> cat aescling's git repositories - mastodon.git/commitdiff
In footer, replace text "Mastodon" with logo (#7545)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 19 May 2018 14:10:55 +0000 (16:10 +0200)
committerGitHub <noreply@github.com>
Sat, 19 May 2018 14:10:55 +0000 (16:10 +0200)
app/javascript/styles/mastodon/footer.scss
app/views/layouts/public.html.haml

index dd3c1b688414678d5967a19c6887cc12d5b5b67c..fe2d40c0cc384ce00768a580c4f50fcf655ab215 100644 (file)
         text-decoration: none;
       }
     }
+
+    img {
+      margin: 0 4px;
+      position: relative;
+      bottom: -1px;
+      height: 18px;
+      vertical-align: top;
+    }
   }
 }
index 63cc3c7a7da86c36f1521d089585e616f68272ed..600290297dc57d6dbf97be48e85b4d0bec55fabc 100644 (file)
@@ -12,6 +12,6 @@
     - else
       %span.footer__domain= link_to site_hostname, root_path
     %span.powered-by
-      != t('generic.powered_by', link: link_to('Mastodon', 'https://joinmastodon.org'))
+      != t('generic.powered_by', link: link_to('https://joinmastodon.org') { image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon' })
 
 = render template: 'layouts/application'