From 823f427760fcb80ceab63ecb4827e4f0e16c97bf Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 14 May 2025 22:22:21 +0200 Subject: [PATCH] remove icons on topbar because they are vertically strangely aligned --- app/views/layouts/_topbar.slim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index 4d9f060..2b0e9c4 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -11,22 +11,22 @@ nav.top-bar // TODO: Make the logo depend on the virtual host // TODO: Use proper distribution name span style="font-weight: bold" - ' Debian Screenshots > + 'Debian Screenshots / .top-bar-right / ul.menu li.menu-text class=('active' if controller_name=='welcome' and action_name=='home') a href="/" - i.fa.fa-home + / = icon 'house' span< Home li.menu-text class=('active' if controller_name=='packages' and request.fullpath != packages_without_path) a href="/packages" - i.fa.fa-camera + / = icon 'book-image' span< Browse / TODO: highlights the "Browse" tab (even) when you click on Upload li.menu-text class=('active' if request.fullpath == packages_without_path) =link_to :packages_without - i.fa.fa-upload + / = icon 'image-up' span< Upload //li.has-dropdown //a href="#" Distributions @@ -38,7 +38,7 @@ nav.top-bar //a href="#" Ubuntu li.menu-text class=('active' if controller_name=='welcome' and action_name=='about') a href="/about" - i.fa.fa-info-circle + / = icon 'info' span< About/Privacy // TODO: Check correct classes in Zurb/Foundation for top bar! /- 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? = link_to my_profile_path / = image_tag "/images/sso/icons/#{current_user.provider}.svg", width: 20 - i.fa.fa-key + / = icon 'user-round' span< My - else = link_to new_user_session_path - i.fa.fa-key + / = icon 'user-round' span< Login - if @moderate_packages