86 lines
No EOL
2.4 KiB
Text
86 lines
No EOL
2.4 KiB
Text
<div class="focus">
|
|
<div class="focusleft">
|
|
<p>Group</p>
|
|
<%= image_tag "group.png", :class => 'icon', :size => '50x50' %>
|
|
</div>
|
|
<div class="focusmiddle">
|
|
<h1 class="title"><%= @group.name %> <%= link_to "[edit]", edit_group_path(@group) %></h1>
|
|
<div class="desc">
|
|
<p><%= @group.desc %></p>
|
|
</div>
|
|
</div>
|
|
<div class="focusright">
|
|
<p>Location</p>
|
|
<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>
|
|
<p>Link</p>
|
|
<%= link_to @group.link, @group.link, :class => 'link', :target => '_blank' %>
|
|
</div>
|
|
</div>
|
|
<div class="clearfloat nodemargin"></div>
|
|
|
|
<div class="groups">
|
|
<div class="divider"><%= @group.name %> is included in these groups</div>
|
|
<% @gparents.each do |group| %>
|
|
<%= render group %>
|
|
<% end %>
|
|
<% if @gparents.empty? %>
|
|
<p class="empty">Shucks, there are no groups.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div>
|
|
|
|
<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>
|
|
|
|
<div class="groups">
|
|
<div class="divider"><%= @group.name %> includes these groups</div>
|
|
<% @gchildren.each do |group| %>
|
|
<%= render group %>
|
|
<% end %>
|
|
<% if @gchildren.empty? %>
|
|
<p class="empty">Shucks, there are no groups.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div>
|
|
|
|
<div class="people">
|
|
<div class="divider"><%= @group.name %> includes these people</div>
|
|
<% @pchildren.each do |people| %>
|
|
<%= render people %>
|
|
<% end %>
|
|
<% if @pchildren.empty? %>
|
|
<p class="empty">Shucks, there are no people.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div>
|
|
|
|
<div class="items">
|
|
<div class="divider"><%= @group.name %> includes these items</div>
|
|
<% @ichildren.each do |item| %>
|
|
<%= render item %>
|
|
<% end %>
|
|
<% if @ichildren.empty? %>
|
|
<p class="empty">Shucks, there are no items.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div> |