From 90fc2d15c41cc9863e605e0e1a7850e632fac4b4 Mon Sep 17 00:00:00 2001 From: Saurabh Patel Date: Thu, 4 Apr 2019 19:27:18 +0530 Subject: [PATCH] =?UTF-8?q?FEATURE:=20change=20layout=20when=20default=20p?= =?UTF-8?q?age=20is=20category=20to=20tabular=20for=20=5F=E2=80=A6=20(#727?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/categories/index.html.erb | 45 ++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb index 012c5ff9990..3e476eabcc2 100644 --- a/app/views/categories/index.html.erb +++ b/app/views/categories/index.html.erb @@ -1,17 +1,34 @@ -
- - <% @category_list.categories.each_with_index do |c, index| %> -
- - -

- - <%= c.name %> - -

- <%= c.description&.html_safe %> -
- <% end %> +
+ + + + + + + + + + <% @category_list.categories.each_with_index do |c, index| %> + + + + + <% end %> + +
<%= t 'js.categories.category' %><%= t 'js.topic.list' %>
+
+ + +

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

+
<%= c.description&.html_safe %>
+
+
+
'><%= c.topic_count %>
+
<% content_for :title do %><%= @title %><% end %>