remove double list render on equipment index

This commit is contained in:
Andrew Brown 2014-01-09 15:34:50 +00:00
parent 01e01bc8f9
commit 125da43df8

View File

@ -8,37 +8,6 @@
</h3>
<%= render 'list' %>
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th><%=t '.actions', :default => t("helpers.actions") %></th>
</tr>
</thead>
<tbody>
<% @equipment.each do |equipment| %>
<tr>
<td style="width: 160px;"><%= simple_format link_to equipment.name, equipment_path(equipment) %></td>
<td><%= simple_format equipment.equip_type %></td>
<td><%= simple_format equipment.description %></td>
<td style="width: 180px;">
<%= link_to t('.view', :default => t("helpers.links.view")),
equipment_path(equipment), :class => 'btn' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
equipment_edit_path(equipment), :class => 'btn' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
equipment_path(equipment),
:method => :delete,
:confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
:class => 'btn btn-danger' %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% end %>