From 51e2a04b9bd3c915d8e824f7c6885c2ef3b6c29b Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 24 May 2024 11:57:15 -0600 Subject: Sort communities in README --- templates/communities.md.erb | 7 +++++++ templates/community.md.erb | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 templates/communities.md.erb (limited to 'templates') 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] %> -- cgit v1.2.3