Use a helper to avoid using media/
asset prefixes (#28756)
This commit is contained in:
parent
baab58c80b
commit
cb5ac15923
31 changed files with 40 additions and 36 deletions
|
@ -14,12 +14,12 @@
|
|||
%link{ rel: 'icon', href: '/favicon.ico', type: 'image/x-icon' }/
|
||||
|
||||
- %w(16 32 48).each do |size|
|
||||
%link{ rel: 'icon', sizes: "#{size}x#{size}", href: asset_pack_path("media/icons/favicon-#{size}x#{size}.png"), type: 'image/png' }/
|
||||
%link{ rel: 'icon', sizes: "#{size}x#{size}", href: frontend_asset_path("icons/favicon-#{size}x#{size}.png"), type: 'image/png' }/
|
||||
|
||||
- %w(57 60 72 76 114 120 144 152 167 180 1024).each do |size|
|
||||
%link{ rel: 'apple-touch-icon', sizes: "#{size}x#{size}", href: asset_pack_path("media/icons/apple-touch-icon-#{size}x#{size}.png") }/
|
||||
%link{ rel: 'apple-touch-icon', sizes: "#{size}x#{size}", href: frontend_asset_path("icons/apple-touch-icon-#{size}x#{size}.png") }/
|
||||
|
||||
%link{ rel: 'mask-icon', href: asset_pack_path('media/images/logo-symbol-icon.svg'), color: '#6364FF' }/
|
||||
%link{ rel: 'mask-icon', href: frontend_asset_path('images/logo-symbol-icon.svg'), color: '#6364FF' }/
|
||||
%link{ rel: 'manifest', href: manifest_path(format: :json) }/
|
||||
%meta{ name: 'theme-color', content: '#191b22' }/
|
||||
%meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }/
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
/[if mso]
|
||||
</v:textbox></v:rect>
|
||||
= link_to root_url, class: 'email-header-logo-a' do
|
||||
= image_tag full_pack_url('media/images/mailer-new/common/logo-header.png'), alt: 'Mastodon', width: 157, height: 40
|
||||
= image_tag frontend_asset_url('images/mailer-new/common/logo-header.png'), alt: 'Mastodon', width: 157, height: 40
|
||||
|
||||
-# Heading
|
||||
= yield :heading
|
||||
|
@ -75,7 +75,7 @@
|
|||
%td.email-footer-td
|
||||
%p.email-footer-p
|
||||
= link_to root_url, class: 'email-footer-logo-a' do
|
||||
= image_tag full_pack_url('media/images/mailer-new/common/logo-footer.png'), alt: 'Mastodon', width: 44, height: 44
|
||||
= image_tag frontend_asset_url('images/mailer-new/common/logo-footer.png'), alt: 'Mastodon', width: 44, height: 44
|
||||
%p.email-footer-p
|
||||
= t 'about.hosted_on', domain: site_hostname
|
||||
%p.email-footer-p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue