2015-02-13 04:31:55 +00:00
|
|
|
module VersionCheckHelper
|
|
|
|
def version_status_badge
|
2015-09-23 20:26:15 +00:00
|
|
|
if Rails.env.production? && current_application_settings.version_check_enabled
|
2017-01-19 14:29:11 +00:00
|
|
|
image_url = VersionCheck.new.url
|
2017-08-08 13:25:00 +00:00
|
|
|
image_tag image_url, class: 'js-version-status-badge'
|
2015-05-11 15:23:40 +00:00
|
|
|
end
|
2015-02-13 04:31:55 +00:00
|
|
|
end
|
|
|
|
end
|