Sha256: 4a5622e7950f71909f941d62ef1af1f3c8eef1c0694b6d9ff3f61f6fd4b0b335
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
<table class="table table-striped <%= dom_class(curation_concern) %> related_resources with-headroom"> <caption class="table-heading"> <h2>External Links</h2> </caption> <thead> <tr> <th>Url</th> <th>Actions</th> </tr> </thead> <tbody> <% curation_concern.linked_resources.each do |link| %> <tr class="<%= dom_class(link) %> attributes"> <td class="attribute url"><%= link_to link.url, link.url %></td> <td> <%- if with_actions -%> <%- if can?(:edit, link) -%> <%= link_to( 'Edit', edit_polymorphic_path([:curation_concern, link]), { class: 'btn', title: "Edit #{link}" } ) %> <%- end -%> <%- if can?(:destroy, link) -%> <%= link_to( 'Delete', polymorphic_path([:curation_concern, link]), class: 'btn', method: :delete, title: "Delete #{link.to_s.inspect}", data: {confirm: "Deleting #{link.to_s.inspect} from #{t('sufia.product_name')} is permanent. Click OK to delete this from #{t('sufia.product_name')}, or Cancel to cancel this operation"} )%> <%- end -%> <%- end -%> </td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems