Sha256: c3971db3d760196130494f88f3bbdaa2c81da39b675334101ae1ff0f221d0da3

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

<% if curation_concern.linked_resources.present? %>
<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>
<% elsif can? :edit, curation_concern %>
  <h2>External Links</h2>
  <p class="center"><em>This <%= curation_concern.human_readable_type %> has no external links associated with it. You can add one using the "Add an External Link" button below.</em></p>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/curation_concern/base/_related_resources.html.erb
curate-0.6.5 app/views/curation_concern/base/_related_resources.html.erb
curate-0.6.4 app/views/curation_concern/base/_related_resources.html.erb
curate-0.6.3 app/views/curation_concern/base/_related_resources.html.erb
curate-0.6.1 app/views/curation_concern/base/_related_resources.html.erb
curate-0.6.0 app/views/curation_concern/base/_related_resources.html.erb
curate-0.5.6 app/views/curation_concern/base/_related_resources.html.erb
curate-0.5.5 app/views/curation_concern/base/_related_resources.html.erb
curate-0.5.4 app/views/curation_concern/base/_related_resources.html.erb
curate-0.5.2 app/views/curation_concern/base/_related_resources.html.erb