diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-27 03:33:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 03:33:39 +0200 |
commit | 8d5dcc9301c422f131167574da550f8cdaedb73f (patch) | |
tree | 970805d637cd4ffa9bf5bea2efd046ce8bc1ad82 /app/views/layouts | |
parent | 3b9c02506d5046a66ff84b2c787098481a27bda7 (diff) |
Use `<use />` to render transparent SVG logo instead of inserting it (#10845)
Diffstat (limited to 'app/views/layouts')
-rwxr-xr-x | app/views/layouts/application.html.haml | 3 | ||||
-rw-r--r-- | app/views/layouts/public.html.haml | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 3d63dc0f3..220a4ca9b 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -33,3 +33,6 @@ %body{ class: body_classes } = content_for?(:content) ? yield(:content) : yield + + %div{ style: 'display: none'} + = render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg') diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index d30b2a3ea..ee34936d6 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -38,9 +38,7 @@ %li= link_to t('about.api'), 'https://docs.joinmastodon.org/api/guidelines/' .column-2 %h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/' - - = link_to root_url, class: 'brand' do - = render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg') + = link_to svg_logo, root_url, class: 'brand' .column-3 %h4= site_hostname %ul |