From 0f7d23eb9da33ecd0b749390b4619155e8bcb151 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 18 Sep 2019 21:26:08 +0800 Subject: [PATCH] Update categories_order.html.erb try --- .../admin/archive_files/categories_order.html.erb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/admin/archive_files/categories_order.html.erb b/app/views/admin/archive_files/categories_order.html.erb index c9b5d05..534c8dd 100644 --- a/app/views/admin/archive_files/categories_order.html.erb +++ b/app/views/admin/archive_files/categories_order.html.erb @@ -1,10 +1,17 @@ <% all_locales = I18n.available_locales %> <% count = all_locales.length %> + <% @cats.each do |cat| %> + + + + +<% end %> +
<% all_locales.each_with_index do |locale,index| %> <%= "#{cat[0][:title][locale]}" %> <%= index!=(count-1) ? "/" : ":" %> <% end %> + -
-<% end %> \ No newline at end of file +
\ No newline at end of file