From eb8e5d6df58f82931ed642cca148100c4554e0cc Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Thu, 11 Apr 2024 07:29:01 -0700 Subject: [PATCH] Show the NeoPass testing form link to 25% of users on the homepage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's happening! ✨ --- app/controllers/outfits_controller.rb | 3 +++ app/views/outfits/new.html.haml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index a4e3be17..ea9d236e 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -47,6 +47,9 @@ class OutfitsController < ApplicationController end def new + session[:neopass_test_group] ||= rand(0..99) + @neopass_test_group = session[:neopass_test_group] + @colors = Color.funny.alphabetical @species = Species.alphabetical diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index 1ed13e6f..cf5ed80a 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -18,6 +18,12 @@ %br = link_to "Here's what's coming and why.", about_neopass_path + - if @neopass_test_group < 25 + %p + %strong ➡️ We're starting limited testing today! + = link_to "Here's the secret info if you'd like to take a look!", + "https://forms.gle/hEkw5bXY1W4YhUZb7" + #outfit-forms - localized_cache :action_suffix => 'outfit_forms_intro' do #pet-preview