Compare commits

..

No commits in common. "c32a495780e83cf6acc7036d63fa5f35958abf41" and "ab238ab2a654afd7a322f8cda177fe4e613135bb" have entirely different histories.

4 changed files with 17 additions and 14 deletions

View file

@ -213,10 +213,6 @@ 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"

View file

@ -1,4 +1,9 @@
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

View file

@ -4,19 +4,21 @@
%p#pet-not-found.alert= t 'pets.load.not_found'
- hide_after Date.new(2024, 12, 8) do
- if show_announcement?
%section.announcement
= image_tag "about/announcement.png", width: 70, height: 70,
srcset: {"about/announcement@2x.png": "2x"}
= image_tag "/images/error-grundo.png", width: 70, height: 70,
srcset: {"/images/error-grundo.png": "2x"}
.content
%p
%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!
%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!
%p
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 💜
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! 💜
#outfit-forms
#pet-preview

View file

@ -33,7 +33,7 @@
= external_link_icon
= f.field do
= f.label :glitched, "Glitched?"
= f.label :glitched, "Gliched?"
= f.select :glitched, [["✅ Not marked as Glitched", false],
["👾 Yes, it's bad news bonko'd", true]]