Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.5 KiB

!!! 5
%html{:lang => "en"}
%head
%meta{:charset => "utf-8"}/
%title= content_for?(:title) ? yield(:title) : "Mash"
= csrf_meta_tags
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
:css
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
= stylesheet_link_tag "application", :media => "all"
%body
.navbar.navbar-fixed-top
.navbar-inner
.container
= link_to 'Mash', root_path, :class => 'brand'
.container.nav-collapse
%ul.nav
%li= link_to "Home", root_path
%ul.nav.pull-right
- if user_signed_in?
%li#logged_in_as
= link_to "Hello #{current_user.first_name} #{current_user.last_name}", edit_user_registration_path
%li#logout
= link_to 'Logout', destroy_user_session_path, :method => :delete
- else
%li#login
= link_to 'Login', new_user_session_path
%li#register
= link_to 'Register', new_user_registration_path
.container
.content
- if flash[:notice]
%p{:class => 'notice'}= flash[:notice]
- if flash[:alert]
%p{:class => 'alert'}= flash[:alert]
.row
.span13
= yield
%footer
%p © Rails App Template 2012
= javascript_include_tag "application"