2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Located at /
|
|
|
|
# Shows 3 most recently created topics, synapses, and maps.
|
2014-08-10 17:06:58 +00:00
|
|
|
#%>
|
2013-07-09 16:32:13 +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">
|
2014-10-18 23:26:34 +00:00
|
|
|
<div class="homeTitle">THE VALUE WEB</div>
|
|
|
|
|
|
|
|
<%= 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 %>
|
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? %>
|
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 %>
|