diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3e55c8ee..e357e6ba 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -213,6 +213,10 @@ module ApplicationHelper @hide_title_header = true end + def hide_after(last_day, &block) + yield if Date.today <= last_day + end + def use_responsive_design @use_responsive_design = true add_body_class "use-responsive-design" diff --git a/app/helpers/outfits_helper.rb b/app/helpers/outfits_helper.rb index 36f1a52f..511f6894 100644 --- a/app/helpers/outfits_helper.rb +++ b/app/helpers/outfits_helper.rb @@ -1,9 +1,4 @@ module OutfitsHelper - LAST_DAY_OF_ANNOUNCEMENT = Date.parse("2024-11-08") - def show_announcement? - Date.today <= LAST_DAY_OF_ANNOUNCEMENT - end - def destination_tag(value) hidden_field_tag 'destination', value, :id => nil end diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index 033fa066..6e21ad96 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -4,21 +4,19 @@ %p#pet-not-found.alert= t 'pets.load.not_found' -- if show_announcement? +- hide_after Date.new(2024, 12, 8) do %section.announcement - = image_tag "/images/error-grundo.png", width: 70, height: 70, - srcset: {"/images/error-grundo.png": "2x"} + = image_tag "about/announcement.png", width: 70, height: 70, + srcset: {"about/announcement@2x.png": "2x"} .content %p - %strong - Oops, sorry for the bugs recently! - For the first time in One Million Years, we made some changes to our - modeling code—and it looks like we goofed it, and started gradually - losing some data! + %strong Oh wow, it's busy this time of year! + We've temporarily moved to a bigger server, to help us handle the extra + load. Hopefully this keeps us running smooth! %p - We've restored a backup from before we made these changes, so most - everything is back in order! None of your personal data was affected. - Sorry for the disruption, and hope everyone is doing okay! 💜 + Happy holidays, everyone! Here's hoping you, and your families, and your + precious pets—both online and off—stay happy and healthy for the year + to come 💜 #outfit-forms #pet-preview