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

16 lines
681 B
Plaintext
Raw Permalink Normal View History

2014-07-03 11:25:50 +00:00
<% @labs.each do |lab| %>
<tr id="<%= dom_id lab %>" class="<%= lab.is_hidden ? "checkHide" : "" %>">
<td><%= lab.year %></td>
<td>
2014-07-04 04:18:53 +00:00
<%= link_to lab.lab_title, OrbitHelper.url_to_plugin_show(lab.to_param,'personal_lab'), target: "blank"%>
2014-07-03 11:25:50 +00:00
<div class="quick-edit">
<ul class="nav nav-pills hide">
2014-10-02 11:47:39 +00:00
<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>
2014-07-03 11:25:50 +00:00
</ul>
</div>
</td>
<td><%= lab.location %></td>
2015-01-09 07:45:32 +00:00
<td><%= lab.member_profile.name rescue "" %></td>
2014-07-03 11:25:50 +00:00
</tr>
<% end %>