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

18 lines
825 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 %></td>
<td><%= project.unit %></td>
2014-10-02 11:48:50 +00:00
<td><%= project.member_profile.name rescue "" %></td>
2014-07-04 06:14:37 +00:00
</tr>
<% end %>