personal_activity/app/views/admin/activities/_activities.html.erb

18 lines
851 B
Plaintext

<% @activities.each do |activity| %>
<tr id="<%= dom_id activity %>" class="with_action">
<td> <%= activity.year %> </td>
<td> <%= activity.start_date.strftime('%Y/%m/%d') rescue "" %> </td>
<td> <%= activity.end_date.strftime('%Y/%m/%d') rescue "" %> </td>
<td>
<%= link_to activity.activity_name, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity').to_s, target: "blank" %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_activity_path(activity,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_activity_path(id: activity.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td> <%= activity.work_title %> </td>
<td> <%= activity.authors_type %> </td>
</tr>
<% end %>