summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 11:57:15 -0600
committermo khan <mo@mokhan.ca>2024-05-24 11:57:15 -0600
commit51e2a04b9bd3c915d8e824f7c6885c2ef3b6c29b (patch)
treef2d63d9face1b68edfbabe4e11bab8c8900bff97 /templates
parentf790b3e347533447b0f07c0a03d34e1156ca770b (diff)
Sort communities in README
Diffstat (limited to 'templates')
-rw-r--r--templates/communities.md.erb7
-rw-r--r--templates/community.md.erb5
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/communities.md.erb b/templates/communities.md.erb
new file mode 100644
index 0000000..55d17d3
--- /dev/null
+++ b/templates/communities.md.erb
@@ -0,0 +1,7 @@
+# Calgary (YYC)
+
+| Name | Total | Male | Female | Non-binary | Dogs | Cats |
+| ---- | ----- | ---- | ------ | ---------- | ---- | ---- |
+<%- self.sort.each do |community| -%>
+| <%= community.name %> | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> | <%= community[:female_cnt] %> | <%= community[:other_cnt] %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> |
+<%- end -%>
diff --git a/templates/community.md.erb b/templates/community.md.erb
index 5545667..6c98169 100644
--- a/templates/community.md.erb
+++ b/templates/community.md.erb
@@ -4,6 +4,11 @@
* [Profile][profile]
* [Projection][projection]
* Residents: <%= self[:res_cnt] %>
+ * 1 occupant homes: <%= self[:dwelsz_1] %>
+ * 2 occupant homes: <%= self[:dwelsz_2] %>
+ * 3 occupant homes: <%= self[:dwelsz_3] %>
+ * 4/5 occupant homes: <%= self[:dwelsz_4_5] %>
+ * 6 occupant homes: <%= self[:dwelsz_6] %>
* Dogs: <%= self[:dog_cnt] %>
* Cats: <%= self[:CAT_CNT] %>