MiraitSystems/enju_trunk

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

Summary

Maintainability
Test Coverage
<% if manifestation.items.exists? %>
<div id="holding">
<table class="holding">
    <tr>
      <th><%= t('activerecord.attributes.item.call_number') %></th>
      <th><%= t('activerecord.models.subject') %></th>
    </tr>
    <tr>
      <td>
        <%= call_numberformat(manifestation.items.first) %>
      </td>
      <td>
        <%- manifestation.subjects.each do |s| -%>
          <%= link_to s.term, manifestations_path(:subject => s.term) -%>
        <%- end -%>
      </td>
    </tr>
</table>
</div>
<% end %>