diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb index 2733cc8167..b18334da5c 100644 --- a/app/views/categories/index.html.erb +++ b/app/views/categories/index.html.erb @@ -1,11 +1,14 @@
- <% @category_list.categories.each do |c| %> + <% @category_list.categories.each_with_index do |c, index| %>
- -

- <%= c.name %> -

+ + +

+ + <%= c.name %> + +

<%= c.description&.html_safe %>
<% end %> diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 7d1179c746..4acd8e7b3c 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -26,19 +26,14 @@
<% if params[:page].to_i == 0 && @subcategories.present? %> -
- <% @subcategories.each do |subcategory| %> -
- - - <%= subcategory.name %> - - <% if subcategory.description.present? %> - <%= subcategory.description %> - <% end %> -
+ <% @subcategories.each do |subcategory| %> + + <%= subcategory.name %> + + <% if subcategory.description.present? %> + <%= subcategory.description %> <% end %> -
+ <% end %>
<% end %> <% end %> @@ -47,8 +42,9 @@ <% @list.topics.each_with_index do |t,i| %>
+ - + <%= t.title %> <%= page_links(t) %>