2012-09-23 02:39:12 +00:00
|
|
|
<div class="focus">
|
|
|
|
<div class="focusleft">
|
|
|
|
<p>Group</p>
|
2012-10-04 01:40:26 +00:00
|
|
|
<%= image_tag "group.png", :class => 'icon', :size => '50x50' %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="focusmiddle">
|
2012-09-24 01:30:48 +00:00
|
|
|
<h1 class="title"><%= @group.name %> <%= link_to "[edit]", edit_group_path(@group) %></h1>
|
2012-09-23 02:39:12 +00:00
|
|
|
<div class="desc">
|
|
|
|
<p><%= @group.desc %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="focusright">
|
2012-09-24 01:50:45 +00:00
|
|
|
<p>Location</p>
|
2012-10-08 05:45:44 +00:00
|
|
|
<Span class="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 %>
|
|
|
|
</span>
|
2012-09-23 02:39:12 +00:00
|
|
|
<p>Link</p>
|
2012-10-08 05:45:44 +00:00
|
|
|
<%= link_to @group.link, @group.link, :class => 'link', :target => '_blank' %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat nodemargin"></div>
|
|
|
|
|
|
|
|
<div class="groups">
|
2012-09-24 01:30:48 +00:00
|
|
|
<div class="divider"><%= @group.name %> is included in these groups</div>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% @gparents.each do |group| %>
|
|
|
|
<%= render group %>
|
|
|
|
<% end %>
|
|
|
|
<% if @gparents.empty? %>
|
2012-09-24 01:30:48 +00:00
|
|
|
<p class="empty">Shucks, there are no groups.</p>
|
|
|
|
<% end %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
2012-10-09 03:18:00 +00:00
|
|
|
<div class="relatives" id="container">
|
|
|
|
<div class="divider"><%= @group.name %> is connected to these groups</div>
|
|
|
|
<div id="center-container">
|
|
|
|
<div id="infovis"></div>
|
|
|
|
</div>
|
|
|
|
<div id="right-container">
|
|
|
|
<div id="log"></div>
|
|
|
|
<div id="inner-details"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
json = <%= @relatives %>;
|
|
|
|
console.log(json);
|
|
|
|
$(document).ready(function() {
|
|
|
|
init();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2012-09-23 02:39:12 +00:00
|
|
|
<div class="groups">
|
2012-09-24 01:30:48 +00:00
|
|
|
<div class="divider"><%= @group.name %> includes these groups</div>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% @gchildren.each do |group| %>
|
|
|
|
<%= render group %>
|
|
|
|
<% end %>
|
|
|
|
<% if @gchildren.empty? %>
|
2012-09-24 01:30:48 +00:00
|
|
|
<p class="empty">Shucks, there are no groups.</p>
|
|
|
|
<% end %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<div class="people">
|
2012-09-24 01:30:48 +00:00
|
|
|
<div class="divider"><%= @group.name %> includes these people</div>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% @pchildren.each do |people| %>
|
|
|
|
<%= render people %>
|
|
|
|
<% end %>
|
|
|
|
<% if @pchildren.empty? %>
|
2012-09-24 01:30:48 +00:00
|
|
|
<p class="empty">Shucks, there are no people.</p>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<div class="items">
|
2012-09-24 01:30:48 +00:00
|
|
|
<div class="divider"><%= @group.name %> includes these items</div>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% @ichildren.each do |item| %>
|
|
|
|
<%= render item %>
|
|
|
|
<% end %>
|
|
|
|
<% if @ichildren.empty? %>
|
2012-09-24 01:30:48 +00:00
|
|
|
<p class="empty">Shucks, there are no items.</p>
|
2012-09-23 02:39:12 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|