Sha256: d92427d8d8ba54f9b5a7e7011904218f4c93ca1b44a3976fc275c718b34fd17a

Contents?: true

Size: 891 Bytes

Versions: 6

Compression:

Stored size: 891 Bytes

Contents

<% if curation_concern.collections.present? %>
<table class="table table-striped <%= dom_class(curation_concern) %> collections with-headroom">
  <caption class="table-heading">
    <h2>Collections</h2>
  </caption>
  <thead>
    <tr>
      <th>Collections Featuring this <%= curation_concern.human_readable_type %></th>
    </tr>
  </thead>
  <tbody>
    <% curation_concern.collections.each do |collection| %>
      <tr class="collection attributes">
        <%= content_tag :td, class: 'attribute title', data: { noid: collection.noid } do %>
          <%= link_to collection.title, collection %>
          <span class="pull-right">
            <% if can?(:edit, curation_concern) %>
              <%= button_for_remove_item_from_collection(curation_concern, collection) %>
            <% end %>
          </span>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/views/curation_concern/base/_collections.html.erb
worthwhile-0.1.1 app/views/curation_concern/base/_collections.html.erb
worthwhile-0.1.0 app/views/curation_concern/base/_collections.html.erb
worthwhile-0.0.3 app/views/curation_concern/base/_collections.html.erb
worthwhile-0.0.2 app/views/curation_concern/base/_collections.html.erb
worthwhile-0.0.1 app/views/curation_concern/base/_collections.html.erb