Commit Graph

92 Commits

Author SHA1 Message Date
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
6adc9eb7a7 Add error message when upload fails 2024-08-12 10:17:43 +10:00
01e1e2f33e Fix still creating json if wp commands fail 2024-08-12 10:16:34 +10:00
74f4787cc5 Avoid creating json if upload fails 2024-08-12 10:13:52 +10:00
d04602332f Fix host not working when running on prod wordpress 2024-08-12 10:06:47 +10:00
78cb6bf077 Always install wp-cli/restful package before bulk uploading 2024-08-12 09:42:08 +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
295cb0e66d Add script to bulk upload media 2024-08-12 09:20:00 +10:00
6d8e023807 Allow passing the short name of a council to the script to only update a single one 2024-08-12 07:58:43 +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
397fdb1ede Inital script for uploading media to wordpress 2024-08-11 21:51:57 +10:00
e9a7de83cd Improve error handling in page_renderer.php 2024-08-11 21:51:43 +10:00
4d9d633676 Move candidate csv into a folder named after the council 2024-08-11 20:42:36 +10:00
9d5ba8bd38 Rename JSON_FILE to COUNCILS_FILE 2024-08-11 20:38:03 +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
89a5224af2 Pass candidate CSV to php-template 2024-08-04 22:06:16 +10:00
a29a66a656 Add sample candidate CSVs for a couple of councils 2024-08-04 22:05:49 +10:00
356ebd6524 Add slug property to council_names.json 2024-08-04 22:03:25 +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
0002b0cefb Fix comment in make-council-pages.sh 2024-07-31 10:19:19 +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
89c87d942d Convert make-council-pages.sh script to use php script 2024-07-30 23:01:54 +10:00
cd9135e3bd Create a php version of page template 2024-07-30 23:00:02 +10:00
a75f4ca936 Fix typo in Readme 2024-07-28 23:06:54 +10:00
b017d642bc Create initial template for council pages 2024-07-28 23:05:32 +10:00
e4169182e0 Fix formatting in readme 2024-07-28 19:07:46 +10:00
dac4c6d672 Fix formatting in VEC Data readme 2024-07-28 19:06:21 +10:00
3018c1e30a Add make-council-pages.sh script 2024-07-28 19:05:20 +10:00
f149107943 Add council_names.json 2024-07-28 19:05:08 +10:00
02cfedd611 Add VEC data 2024-07-28 19:04:52 +10:00