Adjusting display of most active card
This commit is contained in:
parent
57a5a00352
commit
6198ad419c
|
@ -6,11 +6,11 @@
|
|||
<%= link_to 'Space API', space_api_path, :class => "btn" %>
|
||||
<%= link_to 'Remote Door Access', space_api_access_path, :class => "btn" if can? :access_doors_remotely, :door_access %>
|
||||
<p>
|
||||
<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)
|
||||
<b>Most Active Card Last Month:</b> <%= @most_active_card.user.name unless @most_active_card.user.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)
|
||||
<% unless @runner_up_card.blank? || @runner_up_card.user.blank? %>
|
||||
<b>Runner Up:</b> <%= @runner_up_card.user.name %> (<%= @runner_up_card.accesses_this_week %> days)
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user