Commit graph

16 commits

Author SHA1 Message Date
7f7be02379 Switch to relative imports
The relative imports make it clearer what code is within the project and where
it's coming from.
2023-10-20 09:45:53 +11:00
82d513b5b7 Apply pyupgrade --py36-plus (but skip f-strings as we're on Python 3.5) 2023-09-07 23:15:48 +10:00
2d8a35375a add fundraiser progress bar for 2022 2022-11-22 14:18:25 -08:00
3298b9fad4 Fix Unicode encoding issues. 2021-12-03 16:01:21 +11:00
dbb31132f2 Remove problematic call to decode(). 2021-11-30 17:35:55 +11:00
ef02ed4052 Apply futurize --stage-2 Python 2/3 compatibility transformations.
These changes specifically require the use of the "future" library.
2021-11-30 07:55:45 +11:00
ab35f7b8f9 Move fundraising goal end times into database. 2021-11-19 17:56:44 +11:00
3e3a42b38c progress bar: Drop JS, make mobile friendly, match design to new site.
The existing jQuery UI-based fundraising progress bar used a float layout,
making it hard to adapt for mobile use. Given that there is not interactivity,
I've dropped all the JS and switched to a flexbox layout. This works well
because the bar will stretch to fit the text rather than always maintaining its scale.
2021-11-16 13:25:39 +11:00
Brett Smith
be37620bb5 supporter: Kick off 2020 fundraiser. RT#12984
Image is copyright Remy DeCausemaker and licensed under CC BY-SA 4.0.
2020-11-24 08:54:02 -05:00
Brett Smith
3c7434b070 base_conservancy: Ready fundraiser bar for 2019. 2019-11-24 16:01:57 -05:00
Brett Smith
027cd0e3e0 base: Break out individual local context variables. 2019-11-22 09:46:07 -05:00
Brett Smith
742850eaf9 fundgoal: Display time remaining in progressbar. 2019-01-08 17:59:23 -05:00
Brett Smith
db40bda419 context_processors: Switch to the 2018 match. 2018-11-18 14:42:47 -05:00
Brett Smith
0add4633c1 base_conservancy: Activate progressbar for new match. 2017-11-27 13:08:21 -05:00
Brett Smith
4758b8bcfd local_context_processors: Add host_url.
This makes it easier for templates to generate a "single canonical URL" for
a resource, as in Open Graph metadata.
2017-11-07 09:17:11 -05:00
Bradley M. Kuhn
5c4cc1e2e1 Add sitefundgoal to top level view context.
The base template now has access to the fund-raising goal that will be
displayed site-wide.  The view here must provide it in the context for
access everywhere.

Furthermore, we need a local context processor to make sure it's in
context everywhere, and we have to make sure that context is properly
passed along.

This code is a bit cargo-culted in, based on what I read in various
places about adding the Request context.
2015-11-30 19:19:46 -08:00