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

19 lines
932 B
Plaintext
Raw Permalink Normal View History

2024-01-23 00:08:00 +00:00
<% @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>
2024-01-29 15:03:02 +00:00
<td> <%= activity.display_field("member_profile").html_safe rescue "" %> </td>
2024-01-23 00:08:00 +00:00
</tr>
<% end %>