62 lines
1.7 KiB
Text
62 lines
1.7 KiB
Text
<div class="focus">
|
|
|
|
<div class="focusleft">
|
|
<p><%= @item.item_category.name %></p>
|
|
<%= image_tag @item.item_category.icon, :class => 'icon', :size => '50x50' %>
|
|
</div>
|
|
<div class="focusmiddle">
|
|
<h1 class="title"><%= @item.name %> <%= link_to "[edit]", edit_item_path(@item) %></h1>
|
|
<div class="desc">
|
|
<p><%= @item.desc %></p>
|
|
</div>
|
|
</div>
|
|
<div class="focusright">
|
|
<p>Link</p>
|
|
<%= link_to @item.link, @item.link, :class => 'link', :target => '_blank' %>
|
|
</div>
|
|
</div>
|
|
<div class="clearfloat nodemargin"></div>
|
|
|
|
<div class="groups">
|
|
<div class="divider"><%= @item.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="parents">
|
|
<div class="divider"><%= @item.name %> is included by these people</div>
|
|
<% @pparents.each do |person| %>
|
|
<%= render person %>
|
|
<% end %>
|
|
<% if @pparents.empty? %>
|
|
<p class="empty">Shucks, there are no people.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div>
|
|
|
|
<div class="items">
|
|
<div class="divider"><%= @item.name %> is included by these items</div>
|
|
<% @iparents.each do |item| %>
|
|
<%= render item %>
|
|
<% end %>
|
|
<% if @iparents.empty? %>
|
|
<p class="empty">Shucks, there are no items.</p>
|
|
<% end %>
|
|
</div>
|
|
<div class="clearfloat"></div>
|
|
|
|
<div class="items">
|
|
<div class="divider"><%= @item.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>
|