summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 12:50:20 -0600
committermo khan <mo@mokhan.ca>2024-05-24 12:50:20 -0600
commitabd466be2c6787d1e287c3f24a2632042b34eeb4 (patch)
treed8b69884dc42e33a78926991084e96793fee2ddc /templates
parent2801e040bca9351d0a1fbcf05fb277c98f68c59b (diff)
add placeholder link for each sector
Diffstat (limited to 'templates')
-rw-r--r--templates/city.md.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/city.md.erb b/templates/city.md.erb
index 63babd1..7ee5ff0 100644
--- a/templates/city.md.erb
+++ b/templates/city.md.erb
@@ -3,9 +3,12 @@
| 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[: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[:dog_cnt] %> | <%= community[:cat_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.name.parameterize %>/README.md
<%- end -%>