Showing active tab correctly in top bar
This commit is contained in:
parent
298ac56ac0
commit
f0c265128b
1 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ header
|
|||
|
||||
section.top-bar-section
|
||||
ul.right
|
||||
li class=('active' if controller_name=='welcome')
|
||||
li class=('active' if controller_name=='welcome' and action_name=='home')
|
||||
a href="/" Home
|
||||
li class=('active' if controller_name=='packages')
|
||||
a href="/packages" Explore
|
||||
|
|
@ -31,12 +31,12 @@ header
|
|||
//a href="#" Debian
|
||||
//li
|
||||
//a href="#" Ubuntu
|
||||
li class=('active' if controller_name=='about')
|
||||
li class=('active' if controller_name=='welcome' and action_name=='about')
|
||||
a href="/about" About
|
||||
li.divider
|
||||
// TODO: Show link for admin/moderation view if admin is logged in
|
||||
li.has-form
|
||||
- if user_signed_in?
|
||||
= link_to "#{current_user.email} logged in", destroy_user_session_path, :method => :delete, class: 'button'
|
||||
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete, class: 'button'
|
||||
- else
|
||||
= link_to 'Login', new_user_session_path, class: 'button'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue