metamaps--metamaps/app/views/layouts/application.html.erb

54 lines
1.5 KiB
Text
Raw Normal View History

2012-09-23 02:39:12 +00:00
<!DOCTYPE html>
<html>
<head>
2012-09-23 20:00:34 +00:00
<title>Metamap</title>
2012-09-23 02:39:12 +00:00
<%= 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">
2012-09-23 20:00:34 +00:00
<h1 id="mainTitle"><%= link_to "metamap", root_path %></h1>&nbsp;beta
2012-09-23 02:39:12 +00:00
<% unless authenticated? %>
<ul>
<li><%= link_to "Login", new_session_path, id: "Login" %></li>
2012-09-24 01:30:48 +00:00
<li>|</li>
<li><%= link_to "Items", items_path %></li>
<li><%= link_to "People", people_path %></li>
<li><%= link_to "Groups", groups_path %></li>
2012-09-23 02:39:12 +00:00
</ul>
<% end %>
<% if authenticated? %>
<ul>
<li><%= link_to "Logout", session_path, method: 'delete', id: "Login" %></li>
2012-10-10 00:23:45 +00:00
<li><%= link_to "My Cards", userobjects_path %></li>
<li>|</li>
<li><%= link_to "Add Synapse", new_synapse_path %></li>
2012-09-24 01:30:48 +00:00
<li>|</li>
<li><%= link_to "Add Item", new_item_path %></li>
<li><%= link_to "Add Person", new_person_path %></li>
<li><%= link_to "Add Group", new_group_path %></li>
<li>|</li>
2012-09-23 02:39:12 +00:00
<li><%= link_to "Items", items_path %></li>
<li><%= link_to "People", people_path %></li>
<li><%= link_to "Groups", groups_path %></li>
</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>