metamaps--metamaps/app/views/maps/_map.html.erb

6 lines
504 B
Text
Raw Normal View History

<%= div_for map do %>
<% if authenticated? %><%= link_to 'Delete', user_map_path(map.user,map), :class => 'delete', :confirm => 'Delete this map (nodes and synapses will remain)?', :method => :delete %><% end %>
<%= link_to map.name, user_map_path(map.user, map), :class => 'title' %>
<div class="desc"><p><%= map.desc %></p><p># of Topics: <%= map.items.count %></p><p># of Synapses: <%= map.synapses.count %></p></div>
<div class="link"><p>Permissions:<%= map.permission %></p></div>
<% end %>