Commit 9151aed7 authored by Alexis Reigel's avatar Alexis Reigel Committed by Alexis Reigel

dry up asset path helper calls

parent b606636e
......@@ -3,10 +3,17 @@ module Gitlab
class << self
def main
return appearance_favicon.favicon_main.url if appearance_favicon.exists?
return ActionController::Base.helpers.image_path('favicon-yellow.png') if Gitlab::Utils.to_boolean(ENV['CANARY'])
return ActionController::Base.helpers.image_path('favicon-blue.png') if Rails.env.development?
ActionController::Base.helpers.image_path('favicon.png')
image_name =
if Gitlab::Utils.to_boolean(ENV['CANARY'])
'favicon-yellow.png'
elsif Rails.env.development?
'favicon-blue.png'
else
'favicon.png'
end
ActionController::Base.helpers.image_path(image_name)
end
def status_overlay(status_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment