metamaps--metamaps/app/views/items/_item.html.erb
2012-10-18 14:24:07 -04:00

8 lines
No EOL
506 B
Text

<%= div_for item do %>
<%= link_to 'Delete', item, :class => 'delete', :confirm => 'Delete this topic and all synapses linking to it?', :method => :delete, :remote => true%>
<p class="type"><%= item.item_category.name %></p>
<%= image_tag item.item_category.icon, :class => 'icon', :size => '50x50' %>
<%= link_to item.name, item_url(item), :class => 'title' %>
<div class="desc"><p><%=item.desc %></p></div>
<%= link_to item.link, item.link, :class => 'link', :target => '_blank' %>
<% end %>