Commit Graph

42 Commits

Author SHA1 Message Date
6d4a49208a Use a CSS class to force columns gap to 0 2024-08-21 23:15:40 +10:00
b21d9d8534 Fix dimensions of ward list so it looks normal on mobile 2024-08-21 23:06:11 +10:00
77dc711f12 Add example-media.json file for testing php-template 2024-08-21 22:59:21 +10:00
eef70107e4 Add list of wards to page if there is more than 1 ward 2024-08-21 22:59:04 +10:00
460b54cdd8 Add map to page if it is present 2024-08-21 22:58:38 +10:00
530554e118 Add description on number of wards 2024-08-21 22:58:12 +10:00
517bc1caf5 Extract sluggify logic to a function 2024-08-21 22:57:38 +10:00
b4ddd94c93 Improve wrapping of 4 ticks 2024-08-19 14:21:09 +10:00
019090089b Only use ticks under candidates 2024-08-19 14:20:52 +10:00
86e0e07f0e Tweak paragraph when we don't have any candidates 2024-08-19 10:52:29 +10:00
42ff10d02f Tweak spacing between candidate name and rating 2024-08-19 00:10:14 +10:00
26a9ed4ad4 Show a single red cross for candidates rated 1 or below 2024-08-19 00:09:58 +10:00
6a7291e677 Improve wrapping of candidate rating ticks 2024-08-19 00:09:10 +10:00
8b3ddec283 Improve LGA template
- Use columns instead of grid so it looks better on mobile
- Add message if there are no candidates for a particular ward
- Tweak spacing of candidate name and ticks
2024-08-18 23:43:58 +10:00
7950bab0c9 Left align opening paragraphs of lga pages 2024-08-18 23:42:11 +10:00
1d012f5ff1 Allow generating page when a candidates.csv file doesn't exist 2024-08-18 23:41:50 +10:00
1ce4e9b3b8 Remove filtering based on Council column in csv 2024-08-15 23:16:05 +10:00
f9cd3d1427 Fix warning if candidates object doesn't have a Picture field 2024-08-12 20:53:04 +10:00
25d0eecb3f Add support for showing different footer per council 2024-08-12 20:48:03 +10:00
a293178250 Add paragraphs to top of page 2024-08-12 20:46:10 +10:00
ec103e8ef5 Set image size again 2024-08-12 20:31:17 +10:00
6ec1ca8866 Revert "Fix image size not being applied"
This reverts commit 54023b372e.
2024-08-12 12:48:57 +10:00
54023b372e Fix image size not being applied 2024-08-12 12:45:52 +10:00
1ef647ae94 Fix spacing not being applied 2024-08-12 12:43:40 +10:00
436cda0c72 Increase spacing after each ward 2024-08-12 12:42:27 +10:00
25224bbae8 Increase size of ticks and change them to green 2024-08-12 12:39:30 +10:00
2cab09f734 Increase column count to 4 2024-08-12 11:59:52 +10:00
fd7f698c06 Limit height of candidate photos to 200px 2024-08-12 11:59:30 +10:00
acb1c47d68 Show a number of ticks per candidate 2024-08-12 09:21:24 +10:00
db1a86c0b9 Sort candidates by rating descending 2024-08-12 09:21:08 +10:00
f8fabe6dc1 Add anchor link for each ward 2024-08-12 09:20:55 +10:00
7d613f7f0d Update template to include candidate pictures 2024-08-12 09:20:41 +10:00
8a1983a0f3 Add a test image to top of council page 2024-08-11 21:57:52 +10:00
5257ca24dc Add support for passing media data to template 2024-08-11 21:57:23 +10:00
e9a7de83cd Improve error handling in page_renderer.php 2024-08-11 21:51:43 +10:00
f1aca43042 Filter out candidates that are not for the specified council 2024-08-04 22:10:53 +10:00
09ffd40bf7 Use named arguments to pass files to template 2024-08-04 22:08:11 +10:00
e7574e7ef8 Fix output being echoed if an error occurs while rendering template 2024-08-04 21:48:42 +10:00
5a4f420b88 Fix not setting columnCount on grid group 2024-08-04 21:47:50 +10:00
4ed59223cf Add initial support for reading candidate data from a CSV file 2024-07-30 23:50:09 +10:00
3f5dafa35c Fix too many ward names appearing on page 2024-07-30 23:46:34 +10:00
cd9135e3bd Create a php version of page template 2024-07-30 23:00:02 +10:00