diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e8bd5ad9b9b..41b20a1d9a0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -194,6 +194,10 @@ module ApplicationHelper 'https://' + promo_host end + def contact_sales_url + promo_url + '/sales' + end + def support_url Gitlab::CurrentSettings.current_application_settings.help_page_support_url.presence || promo_url + '/getting-help/' end @@ -231,6 +235,18 @@ module ApplicationHelper "#{request.path}?#{options.compact.to_param}" end + def use_startup_css? + Feature.enabled?(:startup_css) && !Rails.env.test? + end + + def stylesheet_link_tag_defer(path) + if use_startup_css? + stylesheet_link_tag(path, media: "print") + else + stylesheet_link_tag(path, media: "all") + end + end + def outdated_browser? browser.ie? end |