debian-mirror-gitlab/app/helpers/version_check_helper.rb

9 lines
248 B
Ruby
Raw Normal View History

2015-09-11 14:41:01 +05:30
module VersionCheckHelper
def version_status_badge
2018-03-17 18:26:18 +05:30
if Rails.env.production? && Gitlab::CurrentSettings.version_check_enabled
2017-08-17 22:00:37 +05:30
image_url = VersionCheck.new.url
image_tag image_url, class: 'js-version-status-badge'
2015-09-11 14:41:01 +05:30
end
end
end