Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2013 13:54
Show Gist options
  • Select an option

  • Save anonymous/4995688 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4995688 to your computer and use it in GitHub Desktop.
<head>
<title>Grassington Town Hall</title>
<%= javascript_include_tag "jquery-latest", :media => "all" %>
<%= javascript_include_tag "bootstrap", :media => "all" %>
<%= stylesheet_link_tag "bootstrap", :media => "all" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<a class="brand">Grassington Town Hall</a>
<ul class="nav">
<li class="divider-vertical"></li>
<li><%= link_to "Home", '/' %>
<li><%= link_to "Account", :controller => "user", :action => "account" %></li>
<!-- Dropdown for creating and managing bookings -->
<a href='#' class="dropdown-toggle" data-toggle="dropdown"> Bookings </a>
<ul class="dropdown-menu">
<li><%= link_to "View Bookings", :controller => "booking", :action =>"view" %></li>
<li><%= link_to "New Booking", :controller => "booking", :action =>"new" %></li>
</ul>
</li>
<!-- Link to log out, if logged in -->
<% unless session[:id].nil? %>
<%= link_to "Log Out", :controller => "user", :action => "logout" %></li>
<% end %>
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment