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>
|
2012-12-25 23:29:20 +00:00
|
|
|
<% else %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var userid = null;
|
|
|
|
var username = null;
|
|
|
|
</script>
|
2012-12-16 00:46:39 +00:00
|
|
|
<% 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-25 23:29:20 +00:00
|
|
|
<div class="wrapper" id="wrapper">
|
2012-10-10 15:52:50 +00:00
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2012-12-16 03:52:12 +00:00
|
|
|
|
2012-12-16 20:00:43 +00:00
|
|
|
<div class="footer">
|
2012-12-25 23:29:20 +00:00
|
|
|
<div class="logo">
|
|
|
|
<% unless authenticated? %>
|
|
|
|
<ul class="menu">
|
|
|
|
<li class="first"><%= link_to "Console", console_url %></li>
|
2012-12-27 01:57:06 +00:00
|
|
|
<li><%= link_to "Topics", items_url %></li>
|
|
|
|
<li><%= link_to "Synapses", synapses_url %></li>
|
|
|
|
<li><%= link_to "Maps", maps_url %></li>
|
2012-12-25 23:29:20 +00:00
|
|
|
<li class="last"><%= link_to "Login", new_session_path, id: "Login" %></li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if authenticated? %>
|
|
|
|
<ul class="menu">
|
|
|
|
<li class="first"><%= link_to "Console", console_url %></li>
|
|
|
|
<li><%= link_to "Create Map", new_map_url %></li>
|
|
|
|
<li><%= 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>
|
|
|
|
<li><%= link_to "Invite", invite_path %></li>
|
|
|
|
<li><%= link_to "Settings", edit_user_url(user) %></li>
|
2012-12-26 04:01:17 +00:00
|
|
|
<% unless Map.first(:conditions => [ "id = ?", 7]).nil? %>
|
|
|
|
<li><%= link_to "Feedback", map_path(Map.find(7)) %></li>
|
2012-12-25 23:29:20 +00:00
|
|
|
<% end %>
|
|
|
|
<li class="last"><%= link_to "Logout", session_path, method: 'delete', id: "Login" %></li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<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>
|
2012-12-25 23:29:20 +00:00
|
|
|
</html>
|