2012-09-23 02:39:12 +00:00
|
|
|
<div class="focus">
|
|
|
|
<div class="focusleft">
|
|
|
|
<p><%= @item.item_category.name %></p>
|
2012-10-04 01:40:26 +00:00
|
|
|
<%= image_tag @item.item_category.icon, :class => 'icon', :size => '50x50' %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="focusmiddle">
|
2012-10-29 18:21:36 +00:00
|
|
|
<h1 class="title"><%= @item.name %> <% if (@item.permission == "commons" && authenticated?) || @item.user == user %><%= link_to "[edit]", edit_user_item_path(@user, @item) %><% end %></h1>
|
2012-09-23 02:39:12 +00:00
|
|
|
<div class="desc">
|
|
|
|
<p><%= @item.desc %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="focusright">
|
|
|
|
<p>Link</p>
|
2012-10-08 05:45:44 +00:00
|
|
|
<%= link_to @item.link, @item.link, :class => 'link', :target => '_blank' %>
|
2012-09-23 02:39:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat nodemargin"></div>
|
|
|
|
|
2012-10-09 03:18:00 +00:00
|
|
|
<div class="relatives" id="container">
|
|
|
|
<div id="center-container">
|
|
|
|
<div id="infovis"></div>
|
|
|
|
</div>
|
2012-10-19 04:06:16 +00:00
|
|
|
<div id="showcard">
|
2012-10-09 03:18:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
json = <%= @relatives %>;
|
|
|
|
console.log(json);
|
|
|
|
$(document).ready(function() {
|
2012-10-21 19:57:48 +00:00
|
|
|
initRG();
|
2012-10-09 03:18:00 +00:00
|
|
|
});
|
2012-10-21 17:19:59 +00:00
|
|
|
</script>
|
|
|
|
|
2012-10-26 10:04:52 +00:00
|
|
|
<% if authenticated? %>
|
|
|
|
<%= render :partial => 'items/new' %>
|
|
|
|
<%= render :partial => 'synapses/new' %>
|
|
|
|
<% end %>
|
|
|
|
|