2012-10-26 10:04:52 +00:00
|
|
|
<%= div_for map do %>
|
2012-12-21 23:07:13 +00:00
|
|
|
<% if map.user == user %><%= link_to 'Delete', map_path(map), :class => 'delete', :confirm => 'Delete this map (nodes and synapses will remain)?', :method => :delete, :remote => true %><% end %>
|
2013-01-08 00:57:04 +00:00
|
|
|
<p class="type">Map</p>
|
|
|
|
<%= image_tag 'map.png', :class => 'icon', :size => '50x50' %>
|
|
|
|
<span class="title">
|
|
|
|
<span><%=map.name %></span>
|
|
|
|
<a href="/maps/<%=map.id %>" class="topic-go-arrow">
|
|
|
|
<img class="topic-go-arrow"
|
|
|
|
title="Go to map"
|
|
|
|
src="/assets/go-arrow.png" />
|
|
|
|
</a>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</span>
|
|
|
|
<div class="contributor">
|
|
|
|
Added by: <a href="/users/<%=map.user.id %>" target="_blank"><%=map.user.name %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="scroll">
|
|
|
|
<div class="desc">
|
|
|
|
<p class="mapdata"><%= map.topics.count %> topics and <%= map.synapses.count %> synapses</p>
|
|
|
|
<p><%= map.desc %></p>
|
|
|
|
</div>
|
2012-10-31 22:53:11 +00:00
|
|
|
</div>
|
2012-10-26 10:04:52 +00:00
|
|
|
<% end %>
|