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

21 lines
603 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-10 04:36:23 +00:00
<script>
2014-08-10 17:06:58 +00:00
<% if @request == "active" %>
Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
Metamaps.currentPage = "active";
<% elsif @request == "featured" %>
Metamaps.Maps.Featured = <%= @maps.to_json.html_safe %>;
Metamaps.currentPage = "featured";
<% end %>
Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.isOpen = true;
Metamaps.GlobalUI.Search.lock();
2014-02-10 04:36:23 +00:00
</script>