Commit graph

2398 commits

Author SHA1 Message Date
7adea02e1a Fix JS error 2024-05-09 14:10:10 +10:00
828d2179e3 Further split up the supporter JS into functions 2024-05-09 14:06:39 +10:00
b15c96e25a Replace complex expanding JS with native <details> elements
Have retained the "expand all" behaviour - just with less code.
2024-05-09 13:53:50 +10:00
232452fa9a Fix shirt size for monthly an annual renew 2024-05-08 18:05:27 +10:00
f6299e1686 Remove use of jQuery in conservancy.js
This is the first step towards removing jQuery from the site.
2024-05-08 17:23:45 +10:00
dc005dcf07 Add "use strict" on JS 2024-05-07 11:00:14 +10:00
a664dee8c6 Fix lint warnings 2024-05-07 10:59:46 +10:00
0e5499ad92 Begin jQuery removal 2024-05-07 10:46:34 +10:00
6c693535ea Set ownership during deploy 2024-05-07 09:48:36 +10:00
a9ff670fb7 Merge "supporter" and "supporters" apps
It's a little confusing having both a "supporter" and "supporters" app. This is
a fairly minor change to move the sustainer banner urls/views into the existing
"supporters" app. The functionality isn't directly related, but it is all about
sustainers.
2024-05-07 09:47:47 +10:00
bc1912853f podjango: Use feed title from database 2024-04-26 16:33:55 +10:00
54a3e02d2f Move media to top-level directory 2024-04-26 16:26:51 +10:00
3485926915 podjango: Configure uploaded media directory 2024-04-26 16:13:00 +10:00
1969478a69 podjango: Upload icon per podcast 2024-04-26 16:07:20 +10:00
352aaf2bd2 podjango: Add "Podcast" model to support multiple podcasts
Each Cast (episode) can belong to one or more Podcast, allowing episodes to be
shared between podcasts. This enables us introductory episodes to be delivered
in their own feed, but also included in the main "The Corresponding Source"
feed.

This required adding an additional `podcast_slug` argument to most views. The
date archive views were dropped because they're not linked to from anywhere.

Added a `podcasts` view as an index of all available Podcasts.
2024-04-25 15:32:24 +10:00
5efe14b5cf podjango: Combine templates into a single directory 2024-04-25 15:29:10 +10:00
33c2e373f9 podjango: Remove incomplete "query" view/URLs 2024-04-24 17:49:26 +10:00
20d4d460a5 Fix lint warnings 2024-04-24 17:38:22 +10:00
Paul Visscher
8a1074216f update date 2024-04-16 16:09:25 -04:00
de5491fea7 contacts: Add field to represent the mailout the unsubscribe came from 2024-04-10 16:18:51 +10:00
c2e6c58324 contacts: Allow email via POST or GET parameters 2024-04-09 23:06:52 +10:00
ff689d35ef contacts: Remove ContactEntry and add Unsubscription
This change removes the unused `ContactEntry` model and the `subscribe` view and
replaces it with an `Unsubscription` model and an `unsubscribe` view. It works
similarly, but is intended to be used with the `list-unsubscribe` and
`list-unsubscribe-post` headers.
2024-04-09 22:53:24 +10:00
4848b76dba touch up fossy proposal page 2024-03-29 09:20:08 -07:00
1b3c0fb1c4 better picture of SMSU and update submission date 2024-03-28 13:11:45 -07:00
73cbaa53c3 Update .gitignore for moved secrets file 2024-03-22 12:21:34 +11:00
f9bac64230 Note to-dos 2024-03-22 12:18:03 +11:00
f78eb4ae47 Add Vizio summary judgement 2024-03-22 01:16:30 +00:00
313eabca75 Remove unused static/error templates 2024-03-22 11:23:19 +11:00
106a2f7382 Remove summit_registration Django app
Has some typos suggesting that the code was never completed or used.
2024-03-22 11:19:05 +11:00
7d6a3fa13b Defer JavaScript loading
This avoids waiting for the JS to download before rendering the page.
2024-03-22 10:39:06 +11:00
ffcf016336 Specify encoding for templates in case it's not the default 2024-03-22 10:10:57 +11:00
c52b91e183 Move the content templates/files into conservancy/content
These were previously intermingled with the static content in `conservancy/static`.
2024-03-22 09:34:20 +11:00
255b11884d blog: Retain author/tag when changing pages in entry_list
Denver noted that the author query string was being lost when you select a page
by page number. This change fixes it.
2024-03-21 15:18:22 +11: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
d49114f489 usethesource: Allow logged in users to edit/delete their own comments only
Unless of course they're given the "change comment" and "delete comment"
permissions, with which they can change or delete any comment.
2024-03-21 11:51:57 +11:00
f353f53ee1 Set USE_TZ = False to avoid default changing in Django 5 2024-03-21 09:53:19 +11:00
3c80654914 Use decorator syntax to register admin handlers
Same-same, just marginally neater.
2024-03-21 09:35:00 +11:00
278ee71546 Remove unused CCS upload template 2024-03-20 17:10:32 +11:00
3d36079ef7 Move copyright assignment templates into Django app 2024-03-20 17:10:16 +11:00
5fb6b396d2 Remove unnecessary admin.autodiscover()
Since Django 1.7 this is done automatically.
2024-03-20 17:01:10 +11:00
7573c7eb4d Rearrange urls.py to distinguish the content pages 2024-03-20 16:51:28 +11:00
6717a83d4e Remove unused /coming-soon.html page 2024-03-20 16:45:49 +11:00
4d92711e75 Fix tests 2024-03-20 16:25:02 +11:00
7f44ed9a22 Drop djangocommonsettings.py from ignored files 2024-03-20 16:03:38 +11:00
38af378c95 Add linkcheck script 2024-03-20 15:54:18 +11:00
8963dc916e Handle trailing slashes in static content 2024-03-20 15:45:46 +11:00
99a2271f09 Delegate management of canonical URLs to Apache
This middleware is mostly redundant:

 * redirecting to canonical URLs can be done more simply in Apache
 * appending a forward slash is a default in CommonMiddleware now
 * we're no longer using Squid cache

May need to update Apache to strip/redirect trailing "index.html".
2024-03-20 14:54:54 +11:00
3f60267187 Move secrets.json to top-level 2024-03-20 14:42:10 +11:00
fd8009adbd Fix strange issue with ParameterValidator settings
When imported at top-level, `settings` was a Python module, rather than a Django
settings object. Not sure why.
2024-03-20 14:32:44 +11:00