metamaps--metamaps/app/views/main/_homemap.html.erb

33 lines
1.2 KiB
Text
Raw Normal View History

2014-02-24 07:22:40 +00:00
<%#
# @file
# Shows a map as a card.
# Any list of maps uses this rendering.
#%>
<figure class="map <%= first ? "current" : "" %>">
<a href="/maps/<%= map.id %>">
2014-06-11 14:25:33 +00:00
<div>
2014-02-24 07:22:40 +00:00
<div class="mapCard">
<span class="title">
2014-06-10 17:34:39 +00:00
<%= map.name %>
2014-06-11 14:25:33 +00:00
</span>
<div class="links">
<div class="linkItem contributor">
<%= pluralize(map.contributors.count, 'contributor') %>
</div>
<div class="linkItem mapPerm <%= map.mk_permission %>"><%= map.permission.capitalize %></div>
<div class="clearfloat"></div>
</div>
<div class="desc">
<%= map.desc %>
</div>
2014-02-24 07:22:40 +00:00
<div class="mapContains">
<span class="topicCount"><%= pluralize(map.topics.count, 'topic') %></span>
<span class="synapseCount"><%= pluralize(map.synapses.count, 'synapse') %></span>
2014-06-11 14:25:33 +00:00
</div>
2014-02-24 07:22:40 +00:00
</div>
</div>
</a>
</figure>