Skip to content

A platform for community discussion. Free, open, simple.

UX: Include subcategories in crawler view (#21227)

Penar Musaraj4e0c07c56da7
diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb
index 93d3e170330..1812aca8367 100644
--- a/app/views/categories/index.html.erb
+++ b/app/views/categories/index.html.erb
@@ -20,6 +20,13 @@
</a>
</h3>
<div itemprop='description'><%= c.description&.html_safe %></div>
+ <% if c.subcategory_list.present? %>
+ <div class='subcategories'>
+ <% c.subcategory_list.each_with_index do |sc, index| %>
+ <a href='<%= sc.url %>'><%= sc.name %></a>&nbsp;
+ <% end %>
+ </div>
+ <% end %>
</div>
</td>
<td class='topics'>