summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 12:10:03 -0600
committermo khan <mo@mokhan.ca>2024-05-24 12:10:03 -0600
commit9bdb91d44fe4657666a22d50b5034a82ef915ca5 (patch)
tree0ad81b416dafa64751887f92232632729868c622 /templates
parent92bcab3bea62f01fb2d0f82354a167ff13cc824f (diff)
Add percentages
Diffstat (limited to 'templates')
-rw-r--r--templates/communities.md.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/communities.md.erb b/templates/communities.md.erb
index d60b9f2..1743c15 100644
--- a/templates/communities.md.erb
+++ b/templates/communities.md.erb
@@ -3,7 +3,7 @@
| 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[:female_cnt] %> | <%= community[:other_cnt] %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> |
+ | [<%= 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| -%>