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

32 lines
811 B
Plaintext

<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| %>
<%= journal %>
<% if len!=(i+1) %>
</tr>
<tr>
<% end %>
<% end %>
<tr>
<% end %>
<% end %>
</tbody>
</table>