Turned moderate menu item into admin item with submenu
This commit is contained in:
parent
230f5ec213
commit
68e33f3e5a
1 changed files with 6 additions and 5 deletions
|
|
@ -13,8 +13,6 @@ header
|
||||||
a href="/" Home
|
a href="/" Home
|
||||||
li class=('active' if controller_name=='packages')
|
li class=('active' if controller_name=='packages')
|
||||||
a href="/packages" Explore
|
a href="/packages" Explore
|
||||||
//li class=('active' if controller_name=='upload')
|
|
||||||
//a href="/upload" Contribute
|
|
||||||
//li.has-dropdown
|
//li.has-dropdown
|
||||||
//a href="#" Distributions
|
//a href="#" Distributions
|
||||||
//ul.dropdown
|
//ul.dropdown
|
||||||
|
|
@ -26,10 +24,13 @@ header
|
||||||
li class=('active' if controller_name=='welcome' and action_name=='about')
|
li class=('active' if controller_name=='welcome' and action_name=='about')
|
||||||
a href="/about" About
|
a href="/about" About
|
||||||
li.divider
|
li.divider
|
||||||
// TODO: Show link for admin/moderation view if admin is logged in
|
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
li class=('active' if controller_name=='moderate')
|
li.has-dropdown
|
||||||
= link_to 'Moderate', moderate_path
|
a href='#' Admin
|
||||||
|
ul.dropdown
|
||||||
|
li = link_to 'Moderate', moderate_path
|
||||||
|
li = link_to 'Logs', logs_path
|
||||||
li.has-form
|
li.has-form
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue