personal-journal1/app/views/admin/journal_papers/merge.html.erb

34 lines
841 B
Plaintext
Raw Normal View History

2019-10-31 12:37:59 +00:00
<table>
<thead>
<tr>
<th><%= t('personal_journal.paper_title') %></th>
<th><%= t('personal_journal.journal_title') %></th>
<th><%= t('module_name.personal_journal') %></th>
</tr>
</thead>
<tbody>
<% if params['mode']=='simple' %>
<% else %>
<% @journals.each do |key,journals| %>
<tr>
<% len = journals.length %>
<td rowspan="<%= len %>">
<%= key[0].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %>
</td>
<td rowspan="<%= len %>">
<%= key[1].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %>
</td>
<% journals.each_with_index do |journal,i| %>
2019-10-31 12:44:37 +00:00
<td>
<%= journal %>
</td>
2019-10-31 12:42:00 +00:00
<% if len!=(i+1) %>
2019-10-31 12:37:59 +00:00
</tr>
<tr>
<% end %>
<% end %>
2019-10-31 12:43:09 +00:00
</tr>
2019-10-31 12:37:59 +00:00
<% end %>
<% end %>
</tbody>
</table>