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

18 lines
901 B
Plaintext

<% @activities.each do |activity| %>
<tr id="<%= dom_id activity %>" class="with_action">
<td class="span1"><%= activity.member_profile.name %></td>
<td class="span1"><%= activity.year %></td>
<td class="span5"><%= link_to activity.activity_name, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity'), target: "blank"%>
<div class="quick-edit">
<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>
<td class="span1"><%= activity.activity_organizer %></td>
</tr>
<% end %>