<% if topic.user == user %><%= link_to 'Delete', topic_path(topic), :class => 'delete', :confirm => 'Delete this topic and all synapses linking to it?', :method => :delete, :remote => true%><% end %>
<%= topic.metacode.name %>
<%= image_tag topic.metacode.icon, :class => 'icon', :size => '50x50' %>
<%= topic.mk_permission %>
<% if topic.user == user %>
Permissions:
<%= best_in_place topic, :permission, :type => :select, :collection => [['commons', 'commons'], ['public','public'], ['private','private']], :classes => 'best_in_place_permission' %>
<% end %>
<%=topic.name %>
<% if (authenticated? && topic.permission == "commons") || topic.user == user %>
[go]
<%=topic.link %>
<% else %>
<%= topic.link %>
<% end %>