Skip to content

Instantly share code, notes, and snippets.

@Drewch
Created November 5, 2012 23:20
Show Gist options
  • Select an option

  • Save Drewch/4021074 to your computer and use it in GitHub Desktop.

Select an option

Save Drewch/4021074 to your computer and use it in GitHub Desktop.
Header Partial
%header.navbar.navbar-fixed-top
.navbar-inner
.container
=link_to "Noctilucent", "#", id: "logo"
%nav
%ul.nav.pull-right
%li= link_to "Home", '#'
%li= link_to "Help", '#'
-if signed_in?
%li#fat-menu.dropdown="Account"
%ul.dropdown-menu
%li= link_to "Profile", '#'
%li= link_to "Settings", '#'
%li.divider
%li= link_to "Sign out", signout_path, method: :delete
!!!
%html
%head
%title=full_title(yield(:title))
=stylesheet_link_tag "application", media: "all"
=javascript_include_tag "application"
=csrf_meta_tags
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
%body
=render 'layouts/header'
.container
-flash.each do |key, value|
.alert{class: "alert-#{key}"}=value
=yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment