LafayetteCollegeLibraries/spot

View on GitHub
app/views/hyrax/collections/_show_descriptions.html.erb

Summary

Maintainability
Test Coverage
<%# controls the display of the metadata table that is part of the collection#show view %>
<h2><%= t('hyrax.dashboard.collections.show.metadata_header') %></h2>
<div class="panel panel-default">
  <table class="table table-condensed collection-show metadata-table">
    <tbody>
      <%# using the instance variable, rather than a local variable passed from the parent partial,
          because the hyrax/admin/admin_sets/show view does not provide one, which triggers a call
          to the blacklight helper method #presenter, which in turn requires a parameter to be
          passed, causing an ArgumentError %>
      <% @presenter.terms_with_values.each do |term| %>
        <%= @presenter.attribute_to_html(term.to_sym) %>
      <% end %>
    </tbody>
  </table>
</div>