debian-mirror-gitlab/app/helpers/version_check_helper.rb
2018-03-17 18:26:18 +05:30

8 lines
248 B
Ruby

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