2012-10-10 15:52:50 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Metamaps</title>
|
2012-12-16 00:46:39 +00:00
|
|
|
<% if authenticated? %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var userid = "<%= user.id %>";
|
|
|
|
var username = "<%= user.name %>";
|
|
|
|
</script>
|
|
|
|
<% end %>
|
2012-10-10 15:52:50 +00:00
|
|
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
|
|
<%= javascript_include_tag "application" %>
|
2012-10-26 10:04:52 +00:00
|
|
|
<script type="text/javascript" src="//use.typekit.net/tki2nyo.js"></script>
|
|
|
|
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
2012-12-16 20:00:43 +00:00
|
|
|
<script type="text/javascript" src="//use.typekit.net/obp7wss.js"></script>
|
|
|
|
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
2012-10-10 15:52:50 +00:00
|
|
|
<%= csrf_meta_tags %>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<%= content_tag :div, class: authenticated? ? "main authenticated" : "main unauthenticated" do %>
|
|
|
|
|
2012-12-14 18:31:39 +00:00
|
|
|
<div class="headertop">
|
2012-10-10 15:52:50 +00:00
|
|
|
<% unless authenticated? %>
|
2012-10-29 17:52:29 +00:00
|
|
|
<ul id="menus">
|
2012-10-10 15:52:50 +00:00
|
|
|
<li><%= link_to "Login", new_session_path, id: "Login" %></li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if authenticated? %>
|
2012-10-28 18:37:46 +00:00
|
|
|
<ul id="menus">
|
|
|
|
<li class="accountWrap">
|
2012-10-31 22:53:11 +00:00
|
|
|
<p id="account">ACCOUNT</p>
|
2012-10-28 18:37:46 +00:00
|
|
|
<ul class="account">
|
|
|
|
<li class="first"><%= link_to "My Topics", user_items_url(user) %></li>
|
|
|
|
<li><%= link_to "My Synapses", user_synapses_url(user) %></li>
|
|
|
|
<li><%= link_to "My Maps", user_maps_url(user) %></li>
|
2012-10-29 17:52:29 +00:00
|
|
|
<li><%= link_to "Invite", invite_path %></li>
|
2012-10-28 18:37:46 +00:00
|
|
|
<li><%= link_to "Settings", edit_user_url(user) %></li>
|
2012-12-16 03:52:12 +00:00
|
|
|
<% unless Map.first(:conditions => [ "id = ?", 7]).nil? %>
|
2012-12-21 23:07:13 +00:00
|
|
|
<li><%= link_to "Feedback", map_path(Map.find(7)) %></li>
|
2012-12-16 03:52:12 +00:00
|
|
|
<% end %>
|
2012-10-28 18:37:46 +00:00
|
|
|
<li class="last"><%= link_to "Logout", session_path, method: 'delete', id: "Login" %></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2012-10-10 15:52:50 +00:00
|
|
|
<li>|</li>
|
2012-10-28 18:37:46 +00:00
|
|
|
<li class="createWrap">
|
2012-10-31 22:53:11 +00:00
|
|
|
<p id="create">CREATE</p>
|
2012-10-28 18:37:46 +00:00
|
|
|
<ul class="create">
|
2012-12-21 23:07:13 +00:00
|
|
|
<li class="first"><%= link_to "Add Map", new_map_path, id: "newmap" %></li>
|
2012-10-28 18:37:46 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2012-10-10 15:52:50 +00:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2012-12-14 18:31:39 +00:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
2012-10-10 15:52:50 +00:00
|
|
|
<div class="wrapper" id="wrapper">
|
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2012-12-16 03:52:12 +00:00
|
|
|
|
2012-12-16 20:00:43 +00:00
|
|
|
<div class="footer">
|
2012-12-16 03:52:12 +00:00
|
|
|
<div class="logo"><h1 id="mainTitle"><%= link_to "metamaps", root_url %></h1><div id="beta">beta</div></div>
|
2012-10-10 15:52:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
2012-10-30 22:32:48 +00:00
|
|
|
<%= render :partial => 'layouts/ga' if Rails.env.production? %>
|
2012-10-10 15:52:50 +00:00
|
|
|
</body>
|