Sha256: 874640c8131a6e7faccca60a3fb2ca72cf0d3a397dc9766084a7811cea7c86fd
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
<% the_collection_is_my_profile = ( current_user.profile.present? && ( current_user.profile.pid == collection.id )) %> <tr> <td> <% if the_collection_is_my_profile %> <% title = "My Profile" %> <% else %> <% title = render_index_field_value( collection, field: 'desc_metadata__title_tesim') %> <% end %> <%= link_to title, collection_path(collection) %> </td> <td> <% if can? :edit, collection %> <% unless the_collection_is_my_profile %> <%= button_to( "Delete", { action: :destroy, controller: :collections, id: collection.id }, data: {confirm: 'Are you sure you want to delete this collection?'}, class: 'btn', form_class: 'button-to pull-right', method: :delete )%> <% end %> <%= link_to "Edit", edit_collection_path(collection), class: 'btn pull-right' %> <% end %> </td> </tr>
Version data entries
6 entries across 6 versions & 1 rubygems