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

15 lines
486 B
Plaintext
Executable File

<div class="col-sm-2">
<div class="thumbnail">
<%= link_to(resource) do %>
<% 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 %>
<%= image_tag(resource.picture.url(:thumb)) if resource.picture? %>
<h4><%=h resource.name %></h4>
<% end %>
</div>
</div>