gearheads
/
mastodon
Archived
2
0
Fork 0

Red favicon for dev (#2470)

* Set a dev specific favicon

* Consistent spacing

* Add trailing slash for consistency

* Update to remove interpolation
gh/stable
Lindsey Bieda 2017-04-26 09:45:27 -04:00 committed by Eugen Rochko
parent 416c9675fc
commit 25cbb8454c
3 changed files with 6 additions and 0 deletions

View File

@ -13,4 +13,9 @@ module ApplicationHelper
other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale) other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale)
other_classes other_classes
end end
def favicon_path
env_suffix = Rails.env.production? ? '' : '-dev'
asset_path "favicon#{env_suffix}.ico"
end
end end

View File

@ -5,6 +5,7 @@
%meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/
%link{:rel => "icon", :href => favicon_path, :type => "image/x-icon"}/
%link{:rel => "apple-touch-icon", :sizes => "180x180", :href => "/apple-touch-icon.png"}/ %link{:rel => "apple-touch-icon", :sizes => "180x180", :href => "/apple-touch-icon.png"}/
%link{:rel => "mask-icon", :href => "/mask-icon.svg", :color => "#2B90D9"}/ %link{:rel => "mask-icon", :href => "/mask-icon.svg", :color => "#2B90D9"}/
%link{:rel => "manifest", :href => "/manifest.json"}/ %link{:rel => "manifest", :href => "/manifest.json"}/

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB