personal-lab/app/views/admin/labs/_lab.html.erb

16 lines
681 B
Plaintext

<% @labs.each do |lab| %>
<tr id="<%= dom_id lab %>" class="<%= lab.is_hidden ? "checkHide" : "" %>">
<td><%= lab.year %></td>
<td>
<%= link_to lab.lab_title, OrbitHelper.url_to_plugin_show(lab.to_param,'personal_lab'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_lab_path(lab) %></li>
<li><%= link_to t(:delete_), admin_lab_path(id: lab.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= lab.location %></td>
<td><%= lab.member_profile.name rescue "" %></td>
</tr>
<% end %>