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

63 lines
2.7 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="homeTextWrapper">
<div class="homeLogo"></div>
<div class="homeText">
Welcome to the collaborative, realtime design and sensemaking playground
2015-06-14 06:29:46 +00:00
for members of SynBio LEAP globally.
</div>
<div class="learnMore">LEARN MORE:</div>
<div class="homeLinks">
<a id="toMetamaps" href="http://metamaps.cc" data-bypass="true"></a>
<a id="toSynbioLeap" href="http://www.synbioleap.org" data-bypass="true"></a>
</div>
</div>
2014-10-18 23:26:34 +00:00
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { class: "loginAnywhere" }) do |f| %>
<div class="accountInput accountEmail">
<%= f.email_field :email, :placeholder => "Email" %>
</div>
<div class="accountInput accountPassword">
<%= f.password_field :password, :placeholder => "Password" %>
</div>
<div class="accountSubmit"><%= f.submit "SIGN IN" %></div>
<% if devise_mapping.rememberable? -%>
<div class="accountRememberMe">
<%= f.label :remember_me, "Stay signed in" %>
<%= f.check_box :remember_me %>
<div class="clearfloat"></div>
</div>
<% end -%>
<div class="clearfloat"></div>
<div class="accountForgotPass">
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
<%= link_to "Forgot password?", new_password_path(resource_name),
:data => { :bypass => 'true'} %>
<% end -%>
</div>
<% end %>
<div class="clearfloat"></div>
2014-08-10 23:13:25 +00:00
</div>
2014-10-18 23:26:34 +00:00
</div><!-- end yield -->
2014-08-10 23:13:25 +00:00
<script>
Metamaps.currentSection = "";
Metamaps.currentPage = "";
</script>
2014-08-02 02:50:23 +00:00
<% elsif authenticated? %>
<% content_for :title, "Explore Active Maps | Metamaps" %>
2014-08-10 23:13:25 +00:00
<script>
Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
2014-08-10 17:06:58 +00:00
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 %>