<td>
<% if object.editable? %>
<%= link_to({action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{controller.model_class} #{object.uuid}.\n\nAre you sure?"}) do %>
- <i class="icon-trash"></i>
+ <i class="glyphicon glyphicon-trash"></i>
<% end %>
<% end %>
</td>
<% [['Data', [['humans'],
['traits'],
['specimens'],
- ['collections', 'Files']]],
+ ['collections', 'Files'],
+ ['links']]],
['Compute', [['pipeline_templates', 'Pipelines'],
['repositories', 'Code repositories'],
['virtual_machines']]],
<td>
<% if current_user and (current_user.is_admin or current_user.uuid == link.owner_uuid) %>
- <%= link_to raw('<i class="icon-trash"></i>'), { action: 'destroy', id: link.uuid }, { confirm: 'Delete this link?', method: 'delete' } %>
+ <%= link_to raw('<i class="glyphicon glyphicon-trash"></i>'), { action: 'destroy', id: link.uuid }, { confirm: 'Delete this link?', method: 'delete' } %>
<% end %>
</td>
</small>
</td><td>
<%= ob.created_at %>
- </td><td>
- <% if ob.editable? %>
- <%= link_to({action: 'destroy', id: ob.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{controller.model_class} #{ob.uuid}.\n\nAre you sure?"}) do %>
- <i class="icon-trash"></i>
- <% end %>
- <% end %>
</td>
</tr>