2013-01-25 16:28:32 +00:00
|
|
|
<p>
|
|
|
|
<b>User:</b>
|
2013-02-09 10:32:26 +00:00
|
|
|
<%= link_to @card.user.name, @card.user unless @card.user.blank? %>
|
2013-01-25 16:28:32 +00:00
|
|
|
</p>
|
2012-10-14 12:46:19 +00:00
|
|
|
|
|
|
|
<p>
|
2012-10-14 13:23:35 +00:00
|
|
|
<b>Card Note:</b>
|
2012-10-14 12:46:19 +00:00
|
|
|
<%= @card.name %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Card DB ID:</b>
|
|
|
|
<%= @card.id %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Card Number:</b>
|
|
|
|
<%= @card.card_number %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Card Permissions:</b>
|
2013-02-09 10:32:26 +00:00
|
|
|
<%= if @card.card_permissions == 1 then "Enabled" else "Disabled" end %>
|
2012-10-14 12:46:19 +00:00
|
|
|
</p>
|
|
|
|
|
2013-02-09 10:32:26 +00:00
|
|
|
<% if can? :read, DoorLog %>
|
|
|
|
<p>
|
|
|
|
<b>Access attempts:</b>
|
|
|
|
<ul>
|
|
|
|
<% @door_logs.each do |log| %>
|
|
|
|
<li><%= log.created_at %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
2012-10-14 13:23:35 +00:00
|
|
|
<%= link_to 'Upload to Door', upload_path(@card) if can? :upload, @card %>
|
2013-01-25 16:28:32 +00:00
|
|
|
<% if can? :update, @card then %><%= link_to 'Edit', edit_card_path(@card) %> |<% end %>
|
2012-10-14 12:46:19 +00:00
|
|
|
<%= link_to 'Back', cards_path %>
|