personal-activity/app/views/admin/activities/_activity.html.erb

18 lines
901 B
Plaintext
Raw Permalink Normal View History

2020-02-04 09:35:19 +00:00
<% @activities.each do |activity| %>
2020-02-06 05:45:12 +00:00
<tr id="<%= dom_id activity %>" class="with_action">
2020-02-04 09:35:19 +00:00
<td class="span1"><%= activity.member_profile.name %></td>
<td class="span1"><%= activity.year %></td>
2020-02-13 07:54:36 +00:00
<td class="span5"><%= link_to activity.activity_name, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity'), target: "blank"%>
<div class="quick-edit">
2020-02-05 07:11:31 +00:00
<ul class="nav nav-pills hide">
<% if current_user.is_admin? %>
<li><%= link_to t('edit'), edit_admin_activity_path(activity) %></li>
<li><%= link_to t(:delete_), admin_activity_path(id: activity.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
<% end %>
</ul>
</div>
</td>
2020-02-04 09:35:19 +00:00
<td class="span1"><%= activity.activity_organizer %></td>
</tr>
<% end %>