Add dev indicator to guest navbar

This commit is contained in:
Andreas Nedbal 2023-01-11 22:15:03 +01:00 committed by Andreas Nedbal
parent 9150d09960
commit c93255338e
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,8 @@
.navbar-dev {
&.fixed-top:before {
top: 0;
}
&:before {
@extend .progress-bar-striped;
@extend .bg-warning;

View File

@ -1,10 +1,13 @@
%nav.navbar.navbar-themed.navbar-expand-lg.bg-primary.fixed-top{ role: :navigation }
%nav.navbar.navbar-themed.navbar-expand-lg.bg-primary.fixed-top{ class: Rails.env.development? ? "navbar-dev" : "", role: :navigation }
.container
%a.navbar-brand{ href: '/', title: APP_CONFIG["site_name"] }
- if APP_CONFIG["use_svg_logo"]
= render inline: Rails.application.config.justask_svg_logo
- else
= APP_CONFIG["site_name"]
- if Rails.env.development?
%span.badge.rounded-pill.bg-warning.text-bg-warning.fs-7
DEV
%button.navbar-toggler{ data: { bs_target: '#j2-main-navbar-collapse', bs_toggle: :collapse }, type: :button }
%span.visually-hidden= t("navigation.toggle")
%span.navbar-toggler-icon