2014-02-14 08:09:16 +00:00
|
|
|
<div class="resource">
|
2014-02-09 09:08:08 +00:00
|
|
|
<div class="thumbnail">
|
|
|
|
<%= link_to(resource) do %>
|
2014-02-09 12:13:35 +00:00
|
|
|
<% if resource.user %>
|
|
|
|
<span class="ownership">Owned by:<br/><%= resource.user.name %></span>
|
|
|
|
<% end %>
|
|
|
|
<% if resource.disposed_at %>
|
|
|
|
<span class="disposed">Disposed:<br/><%= resource.disposed_at.to_date %></span>
|
|
|
|
<% end %>
|
2014-02-09 09:08:08 +00:00
|
|
|
<%= image_tag(resource.picture.url(:thumb)) if resource.picture? %>
|
2014-02-09 10:42:17 +00:00
|
|
|
<h4><%=h resource.name %></h4>
|
2014-02-09 09:08:08 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|