app/views/patrons/_patron.html.erb in enju_biblio-0.1.0.pre23 vs app/views/patrons/_patron.html.erb in enju_biblio-0.1.0.pre24
- old
+ new
@@ -3,10 +3,10 @@
<%= link_to patron.full_name, patron -%><br />
<%= patron.full_name_transcription -%>
</td>
<td><%= patron.patron_type.display_name.localize -%></td>
<td>
- <%- if can? :destroy, patron -%>
+ <%- if can? :delete, patron -%>
<%= link_to image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit')), edit_patron_path(patron) -%>
<%= link_to image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('patron.add_derivation')), patron_patrons_path(patron, :mode => 'add') -%>
<%- end -%>
</td>
</tr>