personal_project/app/views/admin/projects/_projects.html.erb

17 lines
781 B
Plaintext

<% @projects.each do |project| %>
<tr id="<%= dom_id project %>" class="with_action">
<td> <%= project.year %> </td>
<td>
<%= link_to project.project_title, OrbitHelper.url_to_plugin_show(project.to_param,'personal_project').to_s, target: "blank" %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_project_path(project,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_project_path(id: project.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td> <%= project.project_number %> </td>
<td> <%= project.display_field("member_profile").html_safe rescue "" %> </td>
<td> <%= project.participants %> </td>
</tr>
<% end %>