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