diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-24 16:28:45 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-24 16:28:45 -0600 |
| commit | 6faac7eca8e9e76ea96a0734692bc414a008a853 (patch) | |
| tree | d5e33d25570293e14c4769704009bd5cd40f2cf6 /templates/city.md.erb | |
| parent | afa52f1b80923f898ccad5cbae0d1b4d8239aa9c (diff) | |
remove sector from dir path
Diffstat (limited to 'templates/city.md.erb')
| -rw-r--r-- | templates/city.md.erb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/city.md.erb b/templates/city.md.erb index 4234584..12a1c73 100644 --- a/templates/city.md.erb +++ b/templates/city.md.erb @@ -3,12 +3,9 @@ | Sector | Name | Total | Male | Female | Non-binary | | ------ | ---- | ----- | ---- | ------ | ---------- | <%- self.sort.each do |community| -%> -| [<%= community[:sector] %>][<%= community[:sector].parameterize %>] | [<%= 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[: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) %>%) | <%- end -%> -<%- self.sectors.each do |sector| -%> -[<%= sector.parameterize %>]: ./<%= sector.parameterize %>/README.md -<%- end -%> <%- self.sort.each do |community| -%> -[<%= community.name.parameterize %>]: ./<%= community[:sector].parameterize %>/<%= community[:comm_code].parameterize %>/README.md +[<%= community.name.parameterize %>]: ./<%= community[:comm_code].parameterize %>/README.md <%- end -%> |
