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

9 lines
253 B
Ruby
Raw Normal View History

2015-09-11 14:41:01 +05:30
module VersionCheckHelper
def version_status_badge
2015-09-25 12:07:36 +05:30
if Rails.env.production? && current_application_settings.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