MiraitSystems/enju_trunk

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

Summary

Maintainability
Test Coverage
<table class="call_number_table">
  <tr>
    <td class="call_number_table">
      <%- if multi_libraries? %>
        <%= item.shelf.library.display_name.localize -%>
        <br />
      <%- end -%>
      <%= link_to item.shelf.display_name.localize, library_shelf_path(item.shelf.library, item.shelf) -%>
      <br />
      <%= item.circulation_status.display_name.localize if item.circulation_status -%>

    </td>
    <td class="call_number_table">
      <table id="call_number_label">
        <%- i = 0; while i < item.shelf.library.call_number_rows.to_i -%>
          <tr>
            <%- if call_numbers[i].blank? -%>
              <td class="call_number_label">&nbsp;</td>
            <%- else -%>
              <td class="call_number_label"><%= call_numbers[i] -%></td>
            <%- end -%>
          </tr>
        <%- i += 1; end -%>
      </table>
    </td>
  </tr>
</table>