app/views/libraries/index.html.erb in enju_library-0.0.1 vs app/views/libraries/index.html.erb in enju_library-0.0.2
- old
+ new
@@ -9,15 +9,15 @@
</p>
<%- end -%>
<p>
<%= t('page.sort_by') -%>:
- <%= link_to t('activerecord.attributes.tag.name'), libraries_path(:order => 'name') -%>
+ <%= link_to t('activerecord.attributes.library.name'), libraries_path(:order => 'name') -%>
<%= link_to t('page.created_at'), libraries_path(:sort_by => 'created_at') -%>
</p>
-<table class="index">
+<table class="table table-striped index">
<tr>
<th id="position"></th>
<th><%= t('activerecord.attributes.library.name') -%></th>
<th>
<%= t('activerecord.attributes.library.telephone_number_1') -%>
@@ -53,10 +53,10 @@
<td>
<%- if can? :update, library -%>
<%= link_to image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit')), edit_library_path(library) -%>
<% end %>
<%- if can? :destroy, library -%>
- <%= link_to image_tag('icons/delete.png', :size => '16x16', :alt => t('page.destroy')), library, :confirm => t('page.are_you_sure'), :method => :delete -%>
+ <%= link_to image_tag('icons/delete.png', :size => '16x16', :alt => t('page.destroy')), library, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
<%- end -%>
</td>
</tr>
<%- end -%>
</table>