metamaps--metamaps/app/views/items/_item.html.erb

8 lines
608 B
Text
Raw Normal View History

2012-10-21 19:14:28 +00:00
<%= div_for item, class: item.item_category.name do %>
<% if item.user == user %><%= link_to 'Delete', user_item_path(@user,item), :class => 'delete', :confirm => 'Delete this topic and all synapses linking to it?', :method => :delete, :remote => true%><% end %>
2012-10-18 18:24:07 +00:00
<p class="type"><%= item.item_category.name %></p>
<%= image_tag item.item_category.icon, :class => 'icon', :size => '50x50' %>
<%= link_to item.name, user_item_path(@user, item), :class => 'title' %>
2012-10-18 18:24:07 +00:00
<div class="desc"><p><%=item.desc %></p></div>
<%= link_to item.link, item.link, :class => 'link', :target => '_blank' %>
2012-09-23 02:39:12 +00:00
<% end %>