From d440601851590890ecf31c28dbc43f5f50194ab0 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Wed, 26 Apr 2017 09:45:27 -0400 Subject: [PATCH] Red favicon for dev (#2470) * Set a dev specific favicon * Consistent spacing * Add trailing slash for consistency * Update to remove interpolation --- app/helpers/application_helper.rb | 5 +++++ app/views/layouts/application.html.haml | 1 + public/favicon-dev.ico | Bin 0 -> 9854 bytes 3 files changed, 6 insertions(+) create mode 100644 public/favicon-dev.ico diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ba6803b4b8..d25b12998a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -13,4 +13,9 @@ module ApplicationHelper other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale) other_classes end + + def favicon_path + env_suffix = Rails.env.production? ? '' : '-dev' + asset_path "favicon#{env_suffix}.ico" + end end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 8e94393100..01c42db935 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -5,6 +5,7 @@ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %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 => "mask-icon", :href => "/mask-icon.svg", :color => "#2B90D9"}/ %link{:rel => "manifest", :href => "/manifest.json"}/ diff --git a/public/favicon-dev.ico b/public/favicon-dev.ico new file mode 100644 index 0000000000000000000000000000000000000000..5f725d587006713535077369269b4d74b5ef0d63 GIT binary patch literal 9854 zcmeHMO^g&p6n;ufki?i6<4M7Y8e(GPZak?82_6)VZ~**?o{cw9{E2!n9=HE?c82UO z5CY-KpLj87A{XO7MmC1TgHbu41Q1!iuex7Pb#+%W)6+A%n^2p#)zek)z3;txRsE_; z0fbkw1H|{^Er%Wzn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