Commit graph

14 commits

Author SHA1 Message Date
2cd8df0d92 Numbers should *not* be hard-coded in this file.
It is difficult to do math in a template (see the `intcomma` thing),
but we shouldn't hardcode numbers in the template.
2026-01-14 14:33:02 -08:00
cf5bd77c56 Support two fundraising bars for a stretch match
Long ago, when the bar was all Javascript, we had the ability to have
sub-targets in a single bar.  I was not able to invest the time
necessary to figure out how to do that again using the newer setup
for the fundraising bar, so instead I've added the ability to have a
stretch match bar that appears above the other one once the first
match period ends.

While it handles most of the weird cases with some grace, it will
probably look weird unless you set up a `SITE_FUNDGOAL_0` as a match
that finishes at least a week or two before `SITE_FUNDGOAL_1`.

The two aren't really aware of each other, either, so you have to
make sure the objects are updated properly (i.e., it *will* display
the stretch when `SITE_FUNDGOAL_0` ends even if there are match funds
remaining in `SITE_FUNDGOAL_0`).

A better solution should be found and implemented before 2026-11-22.
If you're actually reading this commit message for a reason other
than historical interest and that date has past, you're probably in
big trouble right now. 😬
2026-01-14 14:16:44 -08:00
8b470b7b02 fix doubled match goal 2025-12-30 09:43:04 -05:00
ad9c95cb10 update 2025 match goal by 40,012 2025-12-29 15:38:59 -05:00
c1d0d6f9ca fix match goal double 2025-11-26 09:45:49 -08:00
c427712f14 Fundrasier — link to wrap up blog post, mention how much is raised
At this point, this entire file is going to require that we make sure
it's updated before the fundraiser.
2025-01-17 07:36:35 -08:00
d54412ccf3 Fundraiser — Keep fundraising banner until after FOSDEM
This was based on the dates for FOSDEM 2025, so likely this will need
to be adjusted next year.
2025-01-17 07:35:58 -08:00
180f07cd2d display total for fundraising bar 2024-12-04 05:35:34 -08:00
f94d5a1de5 Eliminate base_standard.html template and internalNavigate blocks
The base_standard.html template was an unnecessary level of template
inheritance.

Also removed unused `min` and `subtract` template tags.
2024-05-13 17:11:01 +10:00
3f03afccdc Fix typo 2024-03-21 13:54:49 +11:00
97bb006870 Move fundraiser calculations to model
This changes simplifies the template and adds correct pluralisation of
hours/hour remaining.
2024-03-21 13:20:30 +11:00
00a49ec2bc Display donation bar, noting it's results, for 1 week after end
The fundgoal section is now always included, but an if statement now
wraps the entire (partial) file, which will only generate any content
if it's not more than  one week after the fundraiser has ended.

Add an else that indicates these are results if it is past the end of
the fundraiser.
2024-01-16 06:07:33 -08:00
24ba383db6 Calculate hours when only one day is left.
This {% widthratio %} trick is something I found online that didn't
require a django-math module to work, but I would have rather written
something that:

  (b) Could have a different message when there is only one hour
      left: “less than one hour left” (i.e., tested if hours == 1)

  (c) Will say “hour” instead of “hours” when there is exactly 1 hour
      left.
2024-01-15 21:16:06 -08:00
49ab5aafb4 Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00