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

18 lines
786 B
Plaintext

<% @activities.each do |activity| %>
<tr id="<%= %>" class="with_action">
<td class="span1"><%= activity.member_profile.name %></td>
<td class="span1"><%= activity.year %></td>
<td class="span5"><%= activity.activity_name %>
<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 %>