From 9b288613aeb4e5d32ffb9b57dd453c55eaa5eed6 Mon Sep 17 00:00:00 2001 From: Saurabh Patel Date: Fri, 5 Apr 2019 13:02:11 +0530 Subject: [PATCH] DEV: remove span from inside and move meta info to a td (#7324) --- app/views/list/list.erb | 44 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 7e7088bac7a..d7deb94e517 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -53,32 +53,30 @@ <% @list.topics.each_with_index do |t,i| %> - + - - - <%= t.title %> - - <% if (!@category || @category.has_children?) && t.category %> -
- <%= t.category.name %> -
- <% end %> - <% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %> -

- <%= t.excerpt.html_safe %> -

- <% end %> - - - '><%= t.posts_count %> - - - <%= I18n.l(t.created_at, format: :date_only) %> - -
+ + <%= t.title %> + + <% if (!@category || @category.has_children?) && t.category %> +
+ <%= t.category.name %> +
+ <% end %> + <% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %> +

+ <%= t.excerpt.html_safe %> +

+ <% end %> + + + '><%= t.posts_count %> + + + <%= I18n.l(t.created_at, format: :date_only) %> + <% end %>