37 lines
1.4 KiB
Text
37 lines
1.4 KiB
Text
header
|
|
.row
|
|
.top-bar
|
|
.top-bar-title
|
|
// TODO: Make the logo depend on the virtual host
|
|
img src="/images/logos/debian.svg" width="35" alt="Debian logo"
|
|
// TODO: Use proper distribution name
|
|
'Debian Screenshots >
|
|
|
|
.top-bar-right
|
|
ul.menu
|
|
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
|
|
//li class=('active' if controller_name=='upload')
|
|
//a href="/upload" Contribute
|
|
//li.has-dropdown
|
|
//a href="#" Distributions
|
|
//ul.dropdown
|
|
//// TODO: Use proper distribution list
|
|
//li
|
|
//a href="#" Debian
|
|
//li
|
|
//a href="#" Ubuntu
|
|
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
|
|
- if user_signed_in?
|
|
li class=('active' if controller_name=='moderate')
|
|
= link_to 'Moderate', moderate_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
|