UNC-Libraries/hy-c

View on GitHub
app/views/hyrax/artworks/_attribute_rows.html.erb

Summary

Maintainability
Test Coverage
<%= presenter.attribute_to_html(:creator_display, label: 'Creator', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:abstract, html_dl: true) %>
<%= presenter.attribute_to_html(:description, html_dl: true) %>
<%= presenter.attribute_to_html(:date_issued, html_dl: true, label: "Date of publication") %>
<%= presenter.attribute_to_html(:note, html_dl: true) %>
<%= presenter.attribute_to_html(:doi, html_dl: true, label: "DOI") %>
<%= presenter.attribute_to_html(:resource_type, html_dl: true) %>
<%= presenter.attribute_to_html(:rights_statement_label, label: 'Rights statement', html_dl: true) %>
<%= presenter.attribute_to_html(:license_label, label: 'License', html_dl: true) %>
<%= presenter.attribute_to_html(:extent, html_dl: true) %>
<%= presenter.attribute_to_html(:medium, html_dl: true) %>
<%= presenter.attribute_to_html(:access_right, html_dl: true) %>
<%= presenter.attribute_to_html(:rights_notes, html_dl: true) %>
<% if presenter.date_created %>
  <%= presenter.attribute_to_html(:date_created, html_dl: true, label: "Date uploaded") %>
<% else %>
  <%= presenter.attribute_to_html(:date_uploaded, html_dl: true, label: "Date uploaded") %>
<% end %>
<% if current_user&.admin? %>
  <%= presenter.attribute_to_html(:admin_note, html_dl: true) %>
<% end %>