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
|
||||
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)
|
||||
hidden_field_tag 'destination', value, :id => nil
|
||||
end
|
||||
|
|
|
@ -4,36 +4,21 @@
|
|||
|
||||
%p#pet-not-found.alert= t 'pets.load.not_found'
|
||||
|
||||
%section.neopass-announcement
|
||||
- if show_neopass_announcement?
|
||||
%section.neopass-announcement
|
||||
= image_tag "about/neopass-survey.png", width: 70, height: 70,
|
||||
srcset: {"about/neopass-survey@2x.png": "2x"},
|
||||
class: "neopass-thumbnail"
|
||||
.neopass-content
|
||||
%p
|
||||
%strong
|
||||
💭 Can you help us and TNT decide what to build next with NeoPass?
|
||||
💭 Thank you for sending us your NeoPass feedback!
|
||||
|
||||
%p
|
||||
- if user_signed_in?
|
||||
- if current_user.uses_neopass?
|
||||
= link_to "Login with NeoPass", about_neopass_path
|
||||
is ready—and you're already on it, thank you! 🥰
|
||||
- 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
|
||||
Now that we've built the foundation, TNT are looking for our help deciding what integration to build
|
||||
next.
|
||||
= link_to "Would you fill out this survey for us, please?",
|
||||
"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.
|
||||
We're working with TNT now to build new integrations, based on what you
|
||||
told us! We're glad
|
||||
= link_to "log in with NeoPass", about_neopass_path
|
||||
is working well, and we're excited to do the next part! More info soon!
|
||||
|
||||
%p
|
||||
Thanks again to everyone for helping us out! We're grateful, as always 💖
|
||||
|
|
Loading…
Reference in a new issue