main#home view simplify for only unauthenticated users

This commit is contained in:
Devin Howard 2016-02-28 18:55:48 +08:00
parent ef5d85c2bf
commit e64a16f1b8

View file

@ -2,11 +2,11 @@
# @file # @file
# Located at / # Located at /
# Shows 3 most recently created topics, synapses, and maps. # Shows 3 most recently created topics, synapses, and maps.
#%> #
%>
<% if !authenticated? %> <% content_for :title, "Home | Metamaps" %>
<% content_for :title, "Home | Metamaps" %> <div id="yield">
<div id="yield">
<div class="homeWrapper homeText"> <div class="homeWrapper homeText">
<div class="homeTitle">Make Sense with Metamaps</div> <div class="homeTitle">Make Sense with Metamaps</div>
<div class="homeIntro"> <div class="homeIntro">
@ -15,7 +15,7 @@
</div> </div>
<div class="fullWidthWrapper withVideo"> <div class="fullWidthWrapper withVideo">
<div class="homeWrapper"> <div class="homeWrapper">
<iframe class="homeVideo" src="//player.vimeo.com/video/113154814" width="560" height="315" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <iframe class="homeVideo" src="https://player.vimeo.com/video/113154814" width="560" height="315" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div class="callToAction"> <div class="callToAction">
<h3>Who finds it useful?</h3> <h3>Who finds it useful?</h3>
<p>Designers, inventors, artists, educators, strategists, consultants, facilitators, entrepreneurs, systems thinkers, changemakers, analysts, students, researchers... maybe you!</p> <p>Designers, inventors, artists, educators, strategists, consultants, facilitators, entrepreneurs, systems thinkers, changemakers, analysts, students, researchers... maybe you!</p>
@ -31,23 +31,13 @@
<% # our partners %> <% # our partners %>
</div> </div>
</div> </div>
</div><!-- end yield --> </div><!-- end yield -->
<div class="github-fork-ribbon-wrapper right-bottom"> <div class="github-fork-ribbon-wrapper right-bottom">
<div class="github-fork-ribbon"> <div class="github-fork-ribbon">
<a href="https://github.com/metamaps/metamaps_gen002" target="_blank">Fork me on GitHub</a> <a href="https://github.com/metamaps/metamaps_gen002" target="_blank">Fork me on GitHub</a>
</div> </div>
</div> </div>
<script> <script>
Metamaps.currentSection = ""; Metamaps.currentSection = "";
Metamaps.currentPage = ""; Metamaps.currentPage = "";
</script> </script>
<% elsif authenticated? %>
<% content_for :title, "Explore Active Maps | Metamaps" %>
<script>
Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
Metamaps.currentSection = "";
Metamaps.currentPage = "";
Metamaps.GlobalUI.Search.open();
Metamaps.GlobalUI.Search.lock();
</script>
<% end %>