From 9cba7777630c21e0e62e458197d4ebd40188c63b Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 25 Oct 2023 05:27:40 +0000 Subject: [PATCH] Show coverage --- .../images/tailwind/illustration/coverage.svg | 9 ++++ .../applications/_address_search.html.erb | 47 ++++++++++++------- 2 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 app/assets/images/tailwind/illustration/coverage.svg diff --git a/app/assets/images/tailwind/illustration/coverage.svg b/app/assets/images/tailwind/illustration/coverage.svg new file mode 100644 index 000000000..7cda1ab17 --- /dev/null +++ b/app/assets/images/tailwind/illustration/coverage.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/views/_tailwind/applications/_address_search.html.erb b/app/views/_tailwind/applications/_address_search.html.erb index 5c9fa4d0e..d979f6034 100644 --- a/app/views/_tailwind/applications/_address_search.html.erb +++ b/app/views/_tailwind/applications/_address_search.html.erb @@ -42,29 +42,40 @@

Coverage

-

- We currently cover - <%= Authority.percentage_population_covered_by_all_active_authorities.to_i %>% of - Australia's population within <%= Authority.active.count %> authorities. - For this number we're only counting places where the main planning authority is covered. - As an example, most of Victoria is covered by the SPEAR system but not all Victorian - planning applications go through it. So, we don't include SPEAR in our population count. -

-

- We don't yet cover the whole country, but we are working on it. - New authorities are being added all the time. -

-

- If you are a programmer and would like to write a scraper for your local authority, - or work for a local authority and would like to make your data available, - <%= pa_link_to "find out how you can get involved", get_involved_path %>. -

+ +
+
+

+ We currently cover + <%= Authority.percentage_population_covered_by_all_active_authorities.to_i %>% of + Australia's population within <%= Authority.active.count %> authorities. + For this number we're only counting places where the main planning authority is covered. + As an example, most of Victoria is covered by the SPEAR system but not all Victorian + planning applications go through it. So, we don't include SPEAR in our population count. +

+

+ We don't yet cover the whole country, but we are working on it. + New authorities are being added all the time. +

+

+ If you are a programmer and would like to write a scraper for your local authority, + or work for a local authority and would like to make your data available, + <%= pa_link_to "find out how you can get involved", get_involved_path %>. +

+
+
+ <%= image_tag "tailwind/illustration/coverage.svg" %> +
+ <%= Authority.percentage_population_covered_by_all_active_authorities.to_i %>% +
+
+
<%# TODO: Better heading? %>

Planning Data

-
+

From time to time planning authorities change their websites which breaks the scrapers