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

20 lines
516 B
Text
Raw Normal View History

<%#
# @file
# Shows a list of all maps, or just a user's maps.
# TODO: What url is this accessible at?
#%>
2014-02-05 03:03:24 +00:00
<% content_for :title, "Explore Maps | Metamaps" %>
2014-02-05 03:03:24 +00:00
<h1 class="index">Explore Maps</h1>
<div class="maps" id="cards">
<% @maps.each do |map| %>
<%= render map %>
<% end %>
<% if @maps.empty? %>
<p class="empty"><br>Shucks, there are no maps. <% if authenticated? %><%= link_to "Create one if you want.", new_map_url %><% end %></p>
<% end %>
</div>
<div class="clearfloat"></div>