gitlab-org--gitlab-foss/app/helpers/version_check_helper.rb
2017-07-24 17:36:52 +00:00

8 lines
266 B
Ruby

module VersionCheckHelper
def version_status_badge
if Rails.env.production? && current_application_settings.version_check_enabled
image_url = VersionCheck.new.url
image_tag image_url, class: 'js-version-status-badge', lazy: false
end
end
end