Sha256: c893bbb2e2c0d80d957237f33b79d358b1715b622f25e610a02d50203632653b

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

<% presenters = presenter.collection_presenters %>
<% if presenters.blank? %>
  <% presenter.presenter_types.each do |type| %>
    <%= render 'relationships_parent_row_empty', type: type, presenter: presenter %>
  <% end %>
<% else %>

  <%# Render presenters which aren't specified in the 'presenter_types' %>
  <% presenter.grouped_presenters(except: presenter.presenter_types).each_pair do |model_name, items| %>
    <%= render 'relationships_parent_row', type: model_name, items: items, presenter: presenter %>
  <% end %>

  <%# Render grouped presenters showing rows or an 'empty' row if there are none for that type %>
  <% presenter.presenter_types.each do |type| %>
    <% if presenter.grouped_presenters(filtered_by: type).blank? %>
      <%= render 'relationships_parent_row_empty', type: type, presenter: presenter %>
    <% else %>
      <% presenter.grouped_presenters(filtered_by: type).each_pair do |model_name, items| %>
        <%= render 'relationships_parent_row', type: type, items: items, presenter: presenter %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

<%= presenter.attribute_to_html(:admin_set, render_as: :faceted) %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-7.4.1 app/views/curation_concerns/base/_relationships_parent_rows.html.erb
sufia-7.4.0 app/views/curation_concerns/base/_relationships_parent_rows.html.erb
sufia-7.3.1 app/views/curation_concerns/base/_relationships_parent_rows.html.erb
sufia-7.3.0 app/views/curation_concerns/base/_relationships_parent_rows.html.erb
sufia-7.3.0.rc3 app/views/curation_concerns/base/_relationships_parent_rows.html.erb
sufia-7.3.0.rc2 app/views/curation_concerns/base/_relationships_parent_rows.html.erb