Top bar now part of a .row
This commit is contained in:
parent
61cad639a6
commit
c6cbdb3e3a
1 changed files with 36 additions and 35 deletions
|
|
@ -1,38 +1,39 @@
|
||||||
header
|
nav.top-bar
|
||||||
.row
|
.row
|
||||||
.top-bar
|
.top-bar-left
|
||||||
.top-bar-title
|
ul.menu
|
||||||
// TODO: Make the logo depend on the virtual host
|
li.menu.sitename
|
||||||
img src="/images/logos/debian.svg" width="35" alt="Debian logo"
|
a href='/'
|
||||||
// TODO: Use proper distribution name
|
// TODO: Make the logo depend on the virtual host
|
||||||
'Debian Screenshots >
|
img src="/images/logos/debian.svg" width="35" alt="Debian logo"
|
||||||
|
// TODO: Use proper distribution name
|
||||||
|
' Debian Screenshots >
|
||||||
|
|
||||||
.top-bar-right
|
.top-bar-right
|
||||||
ul.menu
|
ul.dropdown.menu data-dropdown-menu=true
|
||||||
li class=('active' if controller_name=='welcome' and action_name=='home')
|
li class=('active' if controller_name=='welcome' and action_name=='home')
|
||||||
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.has-dropdown
|
//li.has-dropdown
|
||||||
//a href="#" Distributions
|
//a href="#" Distributions
|
||||||
//ul.dropdown
|
//ul.dropdown
|
||||||
//// TODO: Use proper distribution list
|
//// TODO: Use proper distribution list
|
||||||
//li
|
//li
|
||||||
//a href="#" Debian
|
//a href="#" Debian
|
||||||
//li
|
//li
|
||||||
//a href="#" Ubuntu
|
//a href="#" Ubuntu
|
||||||
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
|
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
- if user_signed_in?
|
||||||
|
li
|
||||||
|
a href='#' Admin
|
||||||
|
ul.menu.vertical
|
||||||
|
li = link_to 'Moderate', moderate_path
|
||||||
|
li = link_to 'Logs', logs_path
|
||||||
|
li
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
li.has-dropdown
|
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
||||||
a href='#' Admin
|
- else
|
||||||
ul.dropdown
|
= link_to 'Login', new_user_session_path
|
||||||
li = link_to 'Moderate', moderate_path
|
|
||||||
li = link_to 'Logs', logs_path
|
|
||||||
li.has-form
|
|
||||||
- if user_signed_in?
|
|
||||||
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
|
||||||
- else
|
|
||||||
= link_to 'Login', new_user_session_path
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue