Open-Source-Access-Control-.../app/views/resources/_resource.html.erb

15 lines
486 B
Plaintext
Raw Normal View History

2014-02-09 09:08:08 +00:00
<div class="col-sm-2">
<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>