personal-project/app/views/admin/projects/_project.html.erb

18 lines
843 B
Plaintext
Raw Normal View History

2014-07-04 06:14:37 +00:00
<% @projects.each do |project| %>
<tr id="<%= dom_id project %>" class="<%= project.is_hidden ? "checkHide" : "" %>">
<td><%= project.duration %></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">
2014-10-02 11:48:50 +00:00
<li><%= link_to t('edit'), edit_admin_project_path(project) %></li>
<li><%= link_to t(:delete_), admin_project_path(id: project.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
2014-07-04 06:14:37 +00:00
</ul>
</div>
</td>
<td><%= project.job_title %></td>
<td><%= project.participator.to_s.html_safe %></td>
2014-07-04 06:14:37 +00:00
<td><%= project.unit %></td>
<td><%= get_participator_show(project).html_safe %></td>
2014-07-04 06:14:37 +00:00
</tr>
<% end %>