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

46 lines
1.3 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" %>
<%= stylesheet_link_tag 'style.css' %>
<%= 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>
</ul>
<% end %>
<% if authenticated? %>
<ul>
<li><%= link_to "Logout", session_path, method: 'delete', id: "Login" %></li>
<li><%= link_to "New Item", new_item_path %></li>
<li><%= link_to "Items", items_path %></li>
<li><%= link_to "New Person", new_person_path %></li>
<li><%= link_to "People", people_path %></li>
<li><%= link_to "New Group", new_group_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>