">
<%- if can? :destroy, create -%>
<%= create.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), {:action => 'update', :move => 'higher', :id => create.id, :patron_id => patron.id}, :method => :put) -%>
<%= create.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), {:action => 'update', :move => 'lower', :id => create.id, :patron_id => patron.id}, :method => :put) -%>
<%- end -%>
|
<%= link_to create.work.try(:original_title), create.work -%> |
<%= l(create.created_at) -%> |
<%= l(create.updated_at) -%> |
<%- if can? :destroy, create -%>
<%= link_to t('page.show'), patron_create_path(patron, create) -%>
<%= link_to t('page.destroy'), patron_create_path(patron, create), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
<%- end -%>
|
<%- end -%>