diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 8e4fa53..bc581c3 100755 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -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 %>

-Most Active Card Last Month: <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> days) +Most Active Card Last Month: <%= @most_active_card.user.name unless @most_active_card.user.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> days)

-<% unless @runner_up_card.blank? %> -Runner Up: <%= @runner_up_card.name %> (<%= @runner_up_card.accesses_this_week %> days) +<% unless @runner_up_card.blank? || @runner_up_card.user.blank? %> +Runner Up: <%= @runner_up_card.user.name %> (<%= @runner_up_card.accesses_this_week %> days) <% end %>