BigW Consortium Gitlab

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