|
@ -22,6 +22,7 @@ |
|
|
%a{class:"navbar-brand", href:"/"} |
|
|
%a{class:"navbar-brand", href:"/"} |
|
|
= image_tag 'velo_logo.png' |
|
|
= image_tag 'velo_logo.png' |
|
|
|
|
|
|
|
|
|
|
|
- if user_signed_in? |
|
|
/[Collect the nav links, forms, and other content for toggling] |
|
|
/[Collect the nav links, forms, and other content for toggling] |
|
|
%div{class: "collapse navbar-collapse", id:"bs-example-navbar-collapse-1"} |
|
|
%div{class: "collapse navbar-collapse", id:"bs-example-navbar-collapse-1"} |
|
|
%ul{class: "nav navbar-nav"} |
|
|
%ul{class: "nav navbar-nav"} |
|
@ -34,7 +35,6 @@ |
|
|
%li |
|
|
%li |
|
|
%a{href: bike_path(@bike)} View Your Bike |
|
|
%a{href: bike_path(@bike)} View Your Bike |
|
|
%ul{class: "nav navbar-nav navbar-right"} |
|
|
%ul{class: "nav navbar-nav navbar-right"} |
|
|
- if user_signed_in? |
|
|
|
|
|
%li |
|
|
%li |
|
|
%input{id: "index_logout", value: "Logout", "data-url" => destroy_user_session_path } |
|
|
%input{id: "index_logout", value: "Logout", "data-url" => destroy_user_session_path } |
|
|
|
|
|
|
|
@ -43,6 +43,7 @@ |
|
|
%p{:class => 'notice'}= flash[:notice] |
|
|
%p{:class => 'notice'}= flash[:notice] |
|
|
- if flash[:alert] |
|
|
- if flash[:alert] |
|
|
%p{:class => 'alert'}= flash[:alert] |
|
|
%p{:class => 'alert'}= flash[:alert] |
|
|
|
|
|
= yield |
|
|
|
|
|
|
|
|
%footer |
|
|
%footer |
|
|
%p © BikeShed #{Time.now.year} |
|
|
%p © BikeShed #{Time.now.year} |
|
|