From 3b9a0d1232a6ea5fcde5e0b4530984745cf4716c Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 18 Sep 2019 21:12:37 +0800 Subject: [PATCH] Update categories_order.html.erb try --- .../admin/archive_files/categories_order.html.erb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/admin/archive_files/categories_order.html.erb b/app/views/admin/archive_files/categories_order.html.erb index e183370..e7b9811 100644 --- a/app/views/admin/archive_files/categories_order.html.erb +++ b/app/views/admin/archive_files/categories_order.html.erb @@ -1 +1,10 @@ -<%= @categories.inspect %> \ No newline at end of file +<% all_locales = i18n.locales %> +<% count = all_locales.length %> +<% @cats.each do |cat| %> + <% all_locales.each_with_index do |locale,index| %> + <%= "#{cat[0].title[locale]}" %> + <%= index!=(count-1) ? "/" : ":" %> + <% end %> + +
+<% end %> \ No newline at end of file