BigW Consortium Gitlab

version_check_helper.rb 253 Bytes
Newer Older
1 2
module VersionCheckHelper
  def version_status_badge
3
    if Rails.env.production? && current_application_settings.version_check_enabled
4 5
      image_url = VersionCheck.new.url
      image_tag image_url, class: 'js-version-status-badge'
6
    end
7 8
  end
end