Group

<%= image_tag "group.png", :class => 'icon', :size => '50x50' %>

<%= @group.name %> <%= link_to "[edit]", edit_group_path(@group) %>

<%= @group.desc %>

Location

<%= @group.city %><% if @group.city != "" && @group.province != "" %>, <% end %><%= @group.province %><% if (@group.city != "" || @group.province != "") && @group.country != "" %>, <% end %><%= @group.country %> <% if (@group.city == "" && @group.province == "" && @group.country == "") %>Earth<% end %>

Link

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

Shucks, there are no groups.

<% end %>
<%= @group.name %> is connected to these groups
<%= @group.name %> includes these groups
<% @gchildren.each do |group| %> <%= render group %> <% end %> <% if @gchildren.empty? %>

Shucks, there are no groups.

<% end %>
<%= @group.name %> includes these people
<% @pchildren.each do |people| %> <%= render people %> <% end %> <% if @pchildren.empty? %>

Shucks, there are no people.

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

Shucks, there are no items.

<% end %>