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

35 lines
1.5 KiB
Text
Raw Normal View History

<%#
# @file
# Located at /
# Shows 3 most recently created topics, synapses, and maps.
2014-08-10 17:06:58 +00:00
#%>
2014-08-02 02:50:23 +00:00
<% if !authenticated? %>
2014-08-10 23:13:25 +00:00
<% content_for :title, "Home | Metamaps" %>
<div id="yield">
<div class="homeWrapper">
<div class="homeTitle">EXPERIENCE METAMAPS</div>
<div class="homeIntro">
<span class="green">metamaps.cc</span> is a free and open source platform. It enables individuals, communities, and organizations to build and visualize their shared knowledge and unlock their collective intelligence...
</div>
<iframe class="homeVideo" src="//player.vimeo.com/video/100118167" width="560" height="315" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div class="callToAction">
<a href="/request" class="requestInviteCTA" data-bypass="true">REQUEST INVITE</a>
<a href="/explore/featured" class="exploreFeaturedCTA">EXPLORE FEATURED MAPS</a>
</div>
</div>
</div><!-- end yield -->
<script>
Metamaps.currentSection = "";
Metamaps.currentPage = "";
</script>
2014-08-02 02:50:23 +00:00
<% elsif authenticated? %>
2014-08-10 23:13:25 +00:00
<% content_for :title, "My Maps | Metamaps" %>
<script>
2014-08-10 17:06:58 +00:00
Metamaps.Maps.Mine = <%= @maps.to_json.html_safe %>;
Metamaps.currentSection = "";
Metamaps.currentPage = "";
Metamaps.GlobalUI.Search.isOpen = true;
Metamaps.GlobalUI.Search.lock();
2014-08-10 23:13:25 +00:00
</script>
2014-08-10 17:06:58 +00:00
<% end %>