summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 02a87979f40..e88d1832480 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -285,6 +285,7 @@ module ApplicationHelper
class_names << 'environment-logs-page' if current_controller?(:logs)
class_names << 'with-performance-bar' if performance_bar_enabled?
class_names << system_message_class
+ class_names << marketing_header_experiment_class
class_names
end
@@ -420,6 +421,18 @@ module ApplicationHelper
def appearance
::Appearance.current
end
+
+ def marketing_header_experiment_class
+ return if current_user
+
+ experiment(:logged_out_marketing_header, actor: nil) do |e|
+ html_class = 'logged-out-marketing-header-candidate'
+ e.candidate { html_class }
+ e.try(:trial_focused) { html_class }
+ e.control {}
+ e.run
+ end
+ end
end
ApplicationHelper.prepend_mod