<%# # @file # This file renders a card showing a topic # TODO: Is this code in use or deprecated? What's it's purpose? #%> <%= div_for topic do %> <% if topic.authorize_to_edit(user) %>
<% end %>
<% 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 %>
<%=topic.desc %>
<% if topic.authorize_to_edit(user) %>
<% end %> <% end %>