%= link_to image_tag(@resource.picture.url(:medium)), @resource.picture.url, :popup => ['show_image_preview', 'height=300,width=400'] if @resource.picture? %>
Owner: <%=h (@resource.user || @resource.owner).name %>
<% end %>Category: <%=h @resource.resource_category.name if @resource.resource_category %>
Serial: <%=h @resource.serial %>
Specs: <%=h @resource.specs %>
Status/Location: <%=h @resource.status %> <% if @resource.disposed_at %> Disposed: <%=h @resource.disposed_at.to_date %> <% end %>
Donatable: <%=h @resource.donatable %>
Estimated Value: <%=h @resource.estimated_value %>
Notes: <%=h @resource.notes %>
<%= link_to 'Delete', resource_path(@resource), {:confirm => 'Are you sure you want to delete this forever?', :method => :delete, :class => "btn btn-danger"} if can? :destroy, @resource %>