Sha256: 7f52993d66ea48e6072103989aa59cd880732db0fa35753af5f697739a640790

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

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 %>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
<% end %>

<%- if current_user %>
  <h2>Collections</h2>
  <%- if has_any_collections? %>
    <%= render 'add_to_collection_gui', collectible: curation_concern %>
  <%- else %>
    <div class="span12 main-header">
      <p><em>You have no collections in which to add this <%= curation_concern.human_readable_type %>.</em></p>
    </div>
  <%- end -%>
<%- end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
curate-0.6.0 app/views/curation_concern/base/_collections.html.erb
curate-0.5.6 app/views/curation_concern/base/_collections.html.erb
curate-0.5.5 app/views/curation_concern/base/_collections.html.erb
curate-0.5.4 app/views/curation_concern/base/_collections.html.erb
curate-0.5.2 app/views/curation_concern/base/_collections.html.erb