forked from OpenNeo/impress
Remove survey link from NeoPass announcement, schedule it to vanish
Survey time is done! We'll keep this message up for a few days for people to get to see the thank-you, then it'll stay up through May 5, then vanish.
This commit is contained in:
parent
3f0936f25c
commit
5a9e874d52
2 changed files with 23 additions and 33 deletions
|
@ -1,4 +1,9 @@
|
||||||
module OutfitsHelper
|
module OutfitsHelper
|
||||||
|
LAST_DAY_OF_NEOPASS_ANNOUNCEMENT = Date.parse("2024-05-05")
|
||||||
|
def show_neopass_announcement?
|
||||||
|
Date.today <= LAST_DAY_OF_NEOPASS_ANNOUNCEMENT
|
||||||
|
end
|
||||||
|
|
||||||
def destination_tag(value)
|
def destination_tag(value)
|
||||||
hidden_field_tag 'destination', value, :id => nil
|
hidden_field_tag 'destination', value, :id => nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,41 +4,26 @@
|
||||||
|
|
||||||
%p#pet-not-found.alert= t 'pets.load.not_found'
|
%p#pet-not-found.alert= t 'pets.load.not_found'
|
||||||
|
|
||||||
%section.neopass-announcement
|
- if show_neopass_announcement?
|
||||||
= image_tag "about/neopass-survey.png", width: 70, height: 70,
|
%section.neopass-announcement
|
||||||
srcset: {"about/neopass-survey@2x.png": "2x"},
|
= image_tag "about/neopass-survey.png", width: 70, height: 70,
|
||||||
class: "neopass-thumbnail"
|
srcset: {"about/neopass-survey@2x.png": "2x"},
|
||||||
.neopass-content
|
class: "neopass-thumbnail"
|
||||||
%p
|
.neopass-content
|
||||||
%strong
|
%p
|
||||||
💭 Can you help us and TNT decide what to build next with NeoPass?
|
%strong
|
||||||
|
💭 Thank you for sending us your NeoPass feedback!
|
||||||
|
|
||||||
%p
|
%p
|
||||||
- if user_signed_in?
|
We're working with TNT now to build new integrations, based on what you
|
||||||
- if current_user.uses_neopass?
|
told us! We're glad
|
||||||
= link_to "Login with NeoPass", about_neopass_path
|
= link_to "log in with NeoPass", about_neopass_path
|
||||||
is ready—and you're already on it, thank you! 🥰
|
is working well, and we're excited to do the next part! More info soon!
|
||||||
- else
|
|
||||||
= link_to "Login with NeoPass", about_neopass_path
|
|
||||||
is ready! You can connect via the
|
|
||||||
#{link_to "Settings page", edit_auth_user_path}.
|
|
||||||
- else
|
|
||||||
= link_to "Login with NeoPass", about_neopass_path
|
|
||||||
is ready! If you're new to Dress to Impress, try logging in right now!!
|
|
||||||
🎉
|
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Now that we've built the foundation, TNT are looking for our help deciding what integration to build
|
Thanks again to everyone for helping us out! We're grateful, as always 💖
|
||||||
next.
|
%br
|
||||||
= link_to "Would you fill out this survey for us, please?",
|
%em —Matchu
|
||||||
"https://docs.google.com/forms/d/e/1FAIpQLSdyi7bZB3-gyztdOVSmikRrfts6KM5mK2r37D0SBla3JO3GbQ/viewform"
|
|
||||||
We've got some ideas, and we're looking for more! Even if you don't use
|
|
||||||
NeoPass yet, your input would be <em>super</em> useful.
|
|
||||||
|
|
||||||
%p
|
|
||||||
Thanks again to everyone for helping us out! We're grateful, as always 💖
|
|
||||||
%br
|
|
||||||
%em —Matchu
|
|
||||||
|
|
||||||
#outfit-forms
|
#outfit-forms
|
||||||
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
||||||
|
|
Loading…
Reference in a new issue