Sha256: b48a443f2843eadaefb6ef97fb0b4ee944f0c7f61b2f3814b4fbef56e93f7303

Contents?: true

Size: 1.75 KB

Versions: 9

Compression:

Stored size: 1.75 KB

Contents

<%= render "navigation", :referrer => "stats" %>

<div class="span12">
  <div class="well">
    <h3>Statistics</h3>
    <table class="table table-striped table-bordered">
      <thead>
        <tr>
          <th>Event</th>
          <th>overall</th>
          <th>year</th>
          <th>month</th>
          <th>week</th>
          <th>day</th>
        </tr>
      </thead>
      <tbody>
        <% statistics.each do |best_boy_event| %>
          <tr>
            <td><%= link_to best_boy_event[0], best_boy_admin_details_path(:event => best_boy_event[0], :owner_type => current_owner_type) %>
            <% (1..5).each do |key| %>
              <td><%= best_boy_event[key] %></td>
            <% end %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

<div class="span12">
  <div class="well">
    <h3 class="pull-left">Statistics for <%= current_year %> per month</h3> 
    <div class="pull-right">
      <%= form_tag best_boy_admin_stats_path, :method => :get do %>
        <%= hidden_field_tag :owner_type, current_owner_type %>
        <%= select_tag :year, options_for_select(available_years, :selected => current_year), :onchange => "submit();" %>
      <% end %>
    </div>
    <table class="table table-striped table-bordered">
      <thead>
        <tr>
          <th>Event</th>
          <% month_name_array.each do |month| %>
            <th><%= month %></th>
          <% end %>
        </tr>
      </thead>
      <tbody>
        <% available_events.each do |event| %>
          <tr>
            <td><%= event %></td>
            <% %w(1 2 3 4 5 6 7 8 9 10 11 12).each do |month| %>
              <td><%= stats_by_event_and_month event, month %></td>
            <% end %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
best_boy-1.0.3 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-1.0.2 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-1.0.1 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-1.0.0 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-0.3.3 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-0.3.2 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-0.3.1 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-0.3.0 app/views/best_boy/best_boy_events/stats.html.erb
best_boy-0.2.2 app/views/best_boy/best_boy_events/stats.html.erb