From 276526e30ea6e791f97e1a14d1d6bc7a2fc06be2 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 13 Jun 2018 23:20:48 +0200 Subject: [PATCH] FIX: improves micro data support --- app/views/categories/index.html.erb | 13 ++++++++----- app/views/list/list.erb | 22 +++++++++------------- 2 files changed, 17 insertions(+), 18 deletions(-) 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) %>