<%= @item.item_category.name %>

<%= image_tag @item.item_category.icon, :class => 'icon', :size => '50x50' %>

<%= @item.name %> <%= link_to "[edit]", edit_item_path(@item) %>

<%= @item.desc %>

Link

<%= link_to @item.link, @item.link, :class => 'link', :target => '_blank' %>
<%= @item.name %> is included in these groups
<% @gparents.each do |group| %> <%= render group %> <% end %> <% if @gparents.empty? %>

Shucks, there are no groups.

<% end %>
<%= @item.name %> is included by these people
<% @pparents.each do |person| %> <%= render person %> <% end %> <% if @pparents.empty? %>

Shucks, there are no people.

<% end %>
<%= @item.name %> is included by these items
<% @iparents.each do |item| %> <%= render item %> <% end %> <% if @iparents.empty? %>

Shucks, there are no items.

<% end %>
<%= @item.name %> includes these items
<% @ichildren.each do |item| %> <%= render item %> <% end %> <% if @ichildren.empty? %>

Shucks, there are no items.

<% end %>