From b5076bfc226cf738aa715abd9cd2ca6d58e89a42 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 24 May 2024 12:42:16 -0600 Subject: fix percent for non-binary people --- templates/communities.md.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/communities.md.erb b/templates/communities.md.erb index 3116196..63babd1 100644 --- a/templates/communities.md.erb +++ b/templates/communities.md.erb @@ -3,9 +3,9 @@ | Sector | Name | Total | Male | Female | Non-binary | Dogs | Cats | | ------ | ---- | ----- | ---- | ------ | ---------- | ---- | ---- | <%- self.sort.each do |community| -%> -| <%= 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] %> | +| <%= 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| -%> -[<%= community.name.parameterize %>]: ./,<%= community[:sector].parameterize %>/<%= community.name.parameterize %>/README.md +[<%= community.name.parameterize %>]: ./<%= community[:sector].parameterize %>/<%= community.name.parameterize %>/README.md <%- end -%> -- cgit v1.2.3