MiraitSystems/enju_trunk

View on GitHub
app/views/manifestations/_show_table_of_contents.html.erb

Summary

Maintainability
Test Coverage
<tr>
  <td><%= t('activerecord.attributes.manifestation.table_of_contents') -%>:</td>
  <td>
    <%- manifestation.table_of_contents.order(:display_order).each do |t| -%>
      <%- if t.contents_level == 2 -%>
        &nbsp; &nbsp;
      <%- end -%>
      <%= t.note -%> &nbsp; <%= p "p" if t.pagenumber -%><%= t.pagenumber -%> <br />
    <%- end -%>
  </td>
</tr>