From 02dd7f5c1b83f5448cd58255d5e0e6e6b0f0a4b1 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 14:30:18 +0800 Subject: [PATCH] Update merge.html.erb --- app/views/admin/journal_papers/merge.html.erb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/views/admin/journal_papers/merge.html.erb b/app/views/admin/journal_papers/merge.html.erb index c6e6279..1da69be 100644 --- a/app/views/admin/journal_papers/merge.html.erb +++ b/app/views/admin/journal_papers/merge.html.erb @@ -46,8 +46,6 @@ <% else %> <% i=0 %> <% journals.each do |k,v| %> - <% j=0 %> - <% puts ['hello',j,k,v] %> <% len1 = v.length %> <%= k[0] %> @@ -62,22 +60,19 @@ <%= k[3] %> <% v.each_with_index do |journal_child,index1| %> - <% len2 = v.length %> <%= journal_child %> - <% if len2!=(i+1) %> + <% if len1!=index1 %> <% end %> <% end %> - <% if len1!=(j+1) %> + <% if len1!=(i+1) %> <% end %> - <% j=j+1 - i =i+1 - %> + <% i =i+1 %> <% end %> <% end %>