Changing card stats to month and adding runner up

This commit is contained in:
2013-09-27 01:19:58 -07:00
parent e61ac5d32e
commit 4631489eba
2 changed files with 13 additions and 11 deletions

View File

@@ -4,7 +4,12 @@
<%= link_to 'Upload all cards', upload_all_path if can? :upload_all, Card %>
<%= link_to 'Door Logs', door_logs_path if can? :read, DoorLog %>
<p>
<b>Most Active Card Last 7 Days:</b> <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> times)
<b>Most Active Card Last Month:</b> <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> days)
</p>
<p>
<% unless @runner_up_card.blank? %>
<b>Runner Up:</b> <%= @runner_up_card.name %> (<%= @runner_up_card.accesses_this_week %> days)
<% end %>
</p>
<table class="lined-table">
@@ -19,7 +24,7 @@
<th>DB ID</th>
<th>Card #</th>
<th>Access?</th>
<th>Accesses Last 7 Days</th>
<th>Days Accessed Last Month</th>
<th></th>
<th></th>
<th></th>