internetee-registry/app/helpers/registrar/application_helper.rb
2017-10-02 08:55:19 +03:00

6 lines
177 B
Ruby

module Registrar::ApplicationHelper
def env_style
return '' if unstable_env.nil?
"background-image: url(#{image_path("registrar/bg-#{unstable_env}.png")});"
end
end