app/views/curation_concerns/base/_relationships.html.erb in sufia-7.0.0 vs app/views/curation_concerns/base/_relationships.html.erb in sufia-7.1.0

- old
+ new

@@ -1,22 +1,7 @@ - <h2><%= t('.header') %></h2> - <% collection_presenters = presenter.collection_presenters %> - <% if collection_presenters.blank? %> - <p><%= t('.empty', type: presenter.human_readable_type) %></p> - <% else %> - <table class="table table-striped relationships"> - <tbody> - <tr> - <th><%= t('.collections', type: presenter.human_readable_type) %></th> - <td> - <% collection_presenters.each do |collection| %> - <ul class="tabular"> - <li class='attribute title'> - <%= link_to collection.to_s, main_app.collection_path(collection) %> - </li> - </ul> - <% end %> - </td> - </tr> - </tbody> - </table> - <% end %> +<h2><%= t('.header') %></h2> +<table class="table table-striped relationships"> + <tbody> + <%= render 'relationships_parent_rows', presenter: presenter %> + <%= render 'relationships_member_rows', presenter: presenter %> + </tbody> +</table>