diff --git a/app/views/taggings/index.html.erb b/app/views/taggings/index.html.erb index f49269a91..0e677e872 100644 --- a/app/views/taggings/index.html.erb +++ b/app/views/taggings/index.html.erb @@ -66,4 +66,3 @@ <%= render "taggings/index_footer" %> - diff --git a/app/views/taggings/matrix.html.erb b/app/views/taggings/matrix.html.erb index b63e69188..a83e30724 100644 --- a/app/views/taggings/matrix.html.erb +++ b/app/views/taggings/matrix.html.erb @@ -12,101 +12,101 @@
-
- +
+
- - - - - - <% Tag::TAGGABLE_MODELS.keys.each do |key| %> - + + - <% end %> - - - + <% Tag::TAGGABLE_MODELS.keys.each do |key| %> + + <% end %> + + - - - - + - <% @sectors.each do |sector| %> - - + + - <% Tag::TAGGABLE_MODELS.each do |key, model| %> - <% count = tag_count_for(model, tag: sector, type: :sector) %> - - + - <% end %> - - <% end %> - - - - + <% Tag::TAGGABLE_MODELS.each do |key, model| %> + <% count = tag_count_for(model, tag: sector, type: :sector) %> + + + <% end %> + + <% end %> - <% @categories.each do |category| %> - - + + + + <% @categories.each do |category| %> + + - <% Tag::TAGGABLE_MODELS.each do |key, model| %> - <% count = tag_count_for(model, tag: category, type: :category) %> + <% Tag::TAGGABLE_MODELS.each do |key, model| %> + <% count = tag_count_for(model, tag: category, type: :category) %> - - <% end %> - - <% end %> + count, + model_key: key, + type: :category, + quantiles: @model_heatmap_quantiles + ) %>"> + <% if count.positive? %> + <%= link_to count, + tag_link_for(model, tag: category, type: :category), + class: "font-medium text-indigo-900 hover:underline" %> + <% else %> + 0 + <% end %> + + <% end %> + + <% end %> - -
- Tag - - <%= key.to_s.humanize %> + +
+ Tag
+ <%= key.to_s.humanize %> +
- Service populations -
- <%= render "sectors/tagging_label", sector: sector %> + +
+ Service populations
- <% if count.positive? %> - <%= link_to count, - tag_link_for(model, tag: sector, type: :sector), - class: "font-medium text-indigo-900 hover:underline" %> - <% else %> - 0 - <% end %> + <% @sectors.each do |sector| %> +
+ <%= render "sectors/tagging_label", sector: sector %>
- Categories -
+ <% if count.positive? %> + <%= link_to count, + tag_link_for(model, tag: sector, type: :sector), + class: "font-medium text-indigo-900 hover:underline" %> + <% else %> + 0 + <% end %> +
- <%= render "categories/tagging_label", category: category %> + +
+ Categories
+ <%= render "categories/tagging_label", category: category %> + "> - <% if count.positive? %> - <%= link_to count, - tag_link_for(model, tag: category, type: :category), - class: "font-medium text-indigo-900 hover:underline" %> - <% else %> - 0 - <% end %> -
-
+ + +