diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-24 12:32:20 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-24 12:32:20 -0600 |
| commit | 73d124953717cb0a950e4f77069029ef02af9325 (patch) | |
| tree | d9990b1ed243e754fe040a1b271924f39b21ba89 /templates | |
| parent | 9bdb91d44fe4657666a22d50b5034a82ef915ca5 (diff) | |
Sort by sector
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/communities.md.erb | 6 | ||||
| -rw-r--r-- | templates/community.md.erb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/communities.md.erb b/templates/communities.md.erb index 1743c15..eac6564 100644 --- a/templates/communities.md.erb +++ b/templates/communities.md.erb @@ -1,9 +1,9 @@ # Calgary (YYC) -| Name | Total | Male | Female | Non-binary | Dogs | Cats | -| ---- | ----- | ---- | ------ | ---------- | ---- | ---- | +| Sector | Name | Total | Male | Female | Non-binary | Dogs | Cats | +| ------ | ---- | ----- | ---- | ------ | ---------- | ---- | ---- | <%- self.sort.each do |community| -%> - | [<%= community.name %>][<%= community.name.parameterize %>] | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> (<%= community.percent(:male_cnt) %>%) | <%= community[:female_cnt] %> (<%= community.percent(:female_cnt) %>%) | <%= community[:other_cnt] %> <%= community.percent(:other_cnt) %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> | +| <%= community[:sector] %> | [<%= community.name %>][<%= community.name.parameterize %>] | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> (<%= community.percent(:male_cnt) %>%) | <%= community[:female_cnt] %> (<%= community.percent(:female_cnt) %>%) | <%= community[:other_cnt] %> <%= community.percent(:other_cnt) %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> | <%- end -%> <%- self.sort.each do |community| -%> diff --git a/templates/community.md.erb b/templates/community.md.erb index 6c98169..ba61c9b 100644 --- a/templates/community.md.erb +++ b/templates/community.md.erb @@ -1,4 +1,4 @@ -# <%= name %> (<%= self[:comm_code] %>) - [source][source] +# <%= name %> (<%= self[:comm_code] %>) <%= self[:sector] %> - [source][source] * [Homepage][homepage] * [Profile][profile] |
