Design improvements
This commit is contained in:
parent
800e2ac979
commit
fa9bcbcab3
3 changed files with 74 additions and 71 deletions
|
|
@ -1,45 +1,45 @@
|
|||
.top-bar
|
||||
.top-bar-left
|
||||
ul.menu
|
||||
li.menu-text
|
||||
a href='/'
|
||||
// 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 >
|
||||
nav.top-bar
|
||||
.top-bar-left
|
||||
ul.menu
|
||||
li.menu-text
|
||||
a href='/'
|
||||
// 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.dropdown.menu data-dropdown-menu=true
|
||||
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.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
|
||||
// Add link if user has uploaded screenshots
|
||||
- if @current_users_screenshots and @current_users_screenshots.any?
|
||||
li class=('active' if controller_name=='my' and action_name=='uploads')
|
||||
= link_to my_uploads_path
|
||||
' My uploads
|
||||
span.badge.secondary
|
||||
= @current_users_screenshots.count
|
||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||
- if user_signed_in? and current_user.is_admin?
|
||||
li
|
||||
a href='#' Admin
|
||||
/ ul.menu.vertical
|
||||
/ li = link_to 'Moderate', moderate_path
|
||||
/ li = link_to 'Logs', logs_path
|
||||
li class=('active' if controller_name=='my')
|
||||
- if user_signed_in?
|
||||
= link_to "My", my_profile_path
|
||||
- else
|
||||
= link_to 'Login', new_user_session_path
|
||||
.top-bar-right
|
||||
ul.dropdown.menu data-dropdown-menu=true
|
||||
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.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
|
||||
// Add link if user has uploaded screenshots
|
||||
- if @current_users_screenshots and @current_users_screenshots.any?
|
||||
li class=('active' if controller_name=='my' and action_name=='uploads')
|
||||
= link_to my_uploads_path
|
||||
' My uploads
|
||||
span.badge.secondary
|
||||
= @current_users_screenshots.count
|
||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||
- if user_signed_in? and current_user.is_admin?
|
||||
li
|
||||
a href='#' Admin
|
||||
/ ul.menu.vertical
|
||||
/ li = link_to 'Moderate', moderate_path
|
||||
/ li = link_to 'Logs', logs_path
|
||||
li class=('active' if controller_name=='my')
|
||||
- if user_signed_in?
|
||||
= link_to "My", my_profile_path
|
||||
- else
|
||||
= link_to 'Login', new_user_session_path
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ html
|
|||
= csrf_meta_tags
|
||||
|
||||
body
|
||||
// TODO: move topbar somewhere else than packages
|
||||
= render 'layouts/topbar'
|
||||
.container
|
||||
= render 'layouts/topbar'
|
||||
#content
|
||||
#messages.row
|
||||
= render 'layouts/messages'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue