mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
only show menu if user signed in
This commit is contained in:
parent
1862f5dbc1
commit
d50c73c539
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user