mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
16 lines
361 B
Ruby
16 lines
361 B
Ruby
module ApplicationHelper
|
|
def current_env
|
|
if request.host == 'registry.gitlab.eu'
|
|
:alpha
|
|
elsif request.host == 'testepp.internet.ee'
|
|
:staging
|
|
elsif Rails.env.development?
|
|
:development
|
|
end
|
|
end
|
|
|
|
def env_style
|
|
return '' if current_env.nil?
|
|
"background-image: url(#{image_path(current_env.to_s + '.png')});"
|
|
end
|
|
end
|