remove icons on topbar because they are vertically strangely aligned

This commit is contained in:
Christoph Haas 2025-05-14 22:22:21 +02:00
parent 36e5187f1e
commit 823f427760

View file

@ -11,22 +11,22 @@ nav.top-bar
// TODO: Make the logo depend on the virtual host // TODO: Make the logo depend on the virtual host
// TODO: Use proper distribution name // TODO: Use proper distribution name
span style="font-weight: bold" span style="font-weight: bold"
' Debian Screenshots > 'Debian Screenshots
/ .top-bar-right / .top-bar-right
/ ul.menu / ul.menu
li.menu-text class=('active' if controller_name=='welcome' and action_name=='home') li.menu-text class=('active' if controller_name=='welcome' and action_name=='home')
a href="/" a href="/"
i.fa.fa-home / = icon 'house'
span< Home span< Home
li.menu-text class=('active' if controller_name=='packages' and request.fullpath != packages_without_path) li.menu-text class=('active' if controller_name=='packages' and request.fullpath != packages_without_path)
a href="/packages" a href="/packages"
i.fa.fa-camera / = icon 'book-image'
span< Browse span< Browse
/ TODO: highlights the "Browse" tab (even) when you click on Upload / TODO: highlights the "Browse" tab (even) when you click on Upload
li.menu-text class=('active' if request.fullpath == packages_without_path) li.menu-text class=('active' if request.fullpath == packages_without_path)
=link_to :packages_without =link_to :packages_without
i.fa.fa-upload / = icon 'image-up'
span< Upload span< Upload
//li.has-dropdown //li.has-dropdown
//a href="#" Distributions //a href="#" Distributions
@ -38,7 +38,7 @@ nav.top-bar
//a href="#" Ubuntu //a href="#" Ubuntu
li.menu-text class=('active' if controller_name=='welcome' and action_name=='about') li.menu-text class=('active' if controller_name=='welcome' and action_name=='about')
a href="/about" a href="/about"
i.fa.fa-info-circle / = icon 'info'
span< About/Privacy span< About/Privacy
// TODO: Check correct classes in Zurb/Foundation for top bar! // TODO: Check correct classes in Zurb/Foundation for top bar!
/- if user_signed_in? and current_user.is_admin? and Package.need_moderation.any? /- if user_signed_in? and current_user.is_admin? and Package.need_moderation.any?
@ -59,11 +59,11 @@ nav.top-bar
- if user_signed_in? - if user_signed_in?
= link_to my_profile_path = link_to my_profile_path
/ = image_tag "/images/sso/icons/#{current_user.provider}.svg", width: 20 / = image_tag "/images/sso/icons/#{current_user.provider}.svg", width: 20
i.fa.fa-key / = icon 'user-round'
span< My span< My
- else - else
= link_to new_user_session_path = link_to new_user_session_path
i.fa.fa-key / = icon 'user-round'
span< Login span< Login
- if @moderate_packages - if @moderate_packages