2012-10-10 15:52:50 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Metamaps</title>
|
|
|
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
|
|
<%= javascript_include_tag "application" %>
|
|
|
|
<%= csrf_meta_tags %>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<%= content_tag :div, class: authenticated? ? "main authenticated" : "main unauthenticated" do %>
|
|
|
|
|
|
|
|
<div class="headertop">
|
|
|
|
<h1 id="mainTitle"><%= link_to "metamaps", root_path %></h1> beta
|
|
|
|
<% unless authenticated? %>
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to "Login", new_session_path, id: "Login" %></li>
|
|
|
|
<li>|</li>
|
2012-10-18 00:51:54 +00:00
|
|
|
<li><%= link_to "Topics", items_path %></li>
|
2012-10-10 15:52:50 +00:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if authenticated? %>
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to "Logout", session_path, method: 'delete', id: "Login" %></li>
|
2012-10-18 00:51:54 +00:00
|
|
|
<li><%= link_to "My Synapses", usersynapses_path %></li>
|
|
|
|
<li><%= link_to "My Topics", userobjects_path %></li>
|
2012-10-10 15:52:50 +00:00
|
|
|
<li>|</li>
|
|
|
|
<li><%= link_to "Add Synapse", new_synapse_path %></li>
|
|
|
|
<li>|</li>
|
2012-10-18 00:51:54 +00:00
|
|
|
<li><%= link_to "Add Topic", new_item_path %></li>
|
2012-10-10 15:52:50 +00:00
|
|
|
<li>|</li>
|
2012-10-18 00:51:54 +00:00
|
|
|
<li><%= link_to "Topics", items_path %></li>
|
2012-10-10 15:52:50 +00:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
<div class="wrapper" id="wrapper">
|
|
|
|
<%= yield %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
<div class="wrap">
|
|
|
|
<div class="copy">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</body>
|