Sha256: 42e41c7f25db7b135964348ad2c4815504bbbe23449ba5d8888ebfdfe3fd65b9

Contents?: true

Size: 1.76 KB

Versions: 35

Compression:

Stored size: 1.76 KB

Contents

    <table class="table table-striped index">
      <tr>
        <th>
          <%= t('activerecord.models.library') %>
	</th>
	<th>
          <%= t('activerecord.models.shelf') %>
        </th>
        <% CheckoutType.order(:position).each do |checkout_type| %>
          <th><%= checkout_type.display_name.localize %></th>
        <% end %>
        <th><%= t('page.total') %></th>
      </tr>
      <% Library.order(:position).each do |library| %>
        <% library.shelves.order(:position).each do |shelf| %>
          <tr>
            <td>
              <%= library.display_name.localize %>
            </td>
            <td>
              <%= shelf.display_name.localize %>
            </td>
            <% CheckoutType.order(:position).each do |checkout_type| %>
              <td>
                <%= @checkout_type_results[[shelf.id, checkout_type.id]] %>
              </td>
            <% end %>
            <td>
              <%= @checkout_type_results.select{|r| r[0] == shelf.id}.sum{|k, v| v} %>
            </td>
          </tr>
        <% end %>
      <% end %>
      <tr>
        <td colspan="2"><%= t('page.unknown') %></th>
        <% CheckoutType.order(:position).each do |checkout_type| %>
          <td>
            <%= @checkout_type_results[[nil, checkout_type.id]] %>
          </td>
        <% end %>
        <td>
          <%= @checkout_type_results.select{|r| r[0].nil?}.sum{|k, v| v} %>
        </td>
      </tr>
      <tr>
        <th colspan="2"><%= t('page.total') %></th>
        <% CheckoutType.order(:position).each do |checkout_type| %>
          <td>
            <%= @checkout_type_results.select{|r| r[1] == checkout_type.id}.sum{|k, v| v} %>
          </td>
        <% end %>
        <td><%= @checkout_type_results.sum{|k, v| v} %></td>
      </tr>
    </table>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.10 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.9 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.8 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.7 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.6 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.5 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.4 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.3 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.2 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.1 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.0 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.0.rc.1 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.3.0.beta.1 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.5 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.4 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.3 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.2 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.1 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb
enju_circulation-0.2.0 app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb