Sha256: 4c448226a62c5ed9db0ae584b4dd29b18ca78d0fc9c3fdcab988c0d83f7f7b1a
Contents?: true
Size: 961 Bytes
Versions: 4
Compression:
Stored size: 961 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 }, 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
4 entries across 4 versions & 1 rubygems