|
|
@ -17,7 +17,7 @@
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<% if @packages.present? %>
|
|
|
|
<% if @packages.present? %>
|
|
|
|
<% @packages.each_with_index do |package, index| %>
|
|
|
|
<% @packages.each_with_index do |package, index| %>
|
|
|
|
<tr>
|
|
|
|
<tr class="project-package-item project-package-<%= package.id %>">
|
|
|
|
<td><%= (@obj_pages.page - 1) * @obj_pages.per_page + index + 1 %></td>
|
|
|
|
<td><%= (@obj_pages.page - 1) * @obj_pages.per_page + index + 1 %></td>
|
|
|
|
<td class="edu-txt-left">
|
|
|
|
<td class="edu-txt-left">
|
|
|
|
<%= link_to package.title, project_package_path(package), target: '_blank',
|
|
|
|
<%= link_to package.title, project_package_path(package), target: '_blank',
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
<td><%= package.created_at.strftime('%Y-%m-%d %H:%M') %></td>
|
|
|
|
<td><%= package.created_at.strftime('%Y-%m-%d %H:%M') %></td>
|
|
|
|
<td><%= package.published_at.try(:strftime, '%Y-%m-%d %H:%M') || '--' %></td>
|
|
|
|
<td><%= package.published_at.try(:strftime, '%Y-%m-%d %H:%M') || '--' %></td>
|
|
|
|
<td><%= package.deadline_at.try(:strftime, '%Y-%m-%d %H:%M') || '--' %></td>
|
|
|
|
<td><%= package.deadline_at.try(:strftime, '%Y-%m-%d %H:%M') || '--' %></td>
|
|
|
|
<td></td>
|
|
|
|
<td> <%= link_to '删除', 'javascript:void(0)', class: 'delete-btn', data: { id: package.id } %></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|