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