Commit graph

5 commits

Author SHA1 Message Date
02ca52e2f0
Fix typo 2024-03-21 13:54:49 +11:00
79361cdf97
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
0680c58853 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
b4a2b9c613 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
ce6be591bd
Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00