mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 13:33:36 +01:00
Add dev indicator to guest navbar
This commit is contained in:
parent
9150d09960
commit
c93255338e
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
.navbar-dev {
|
.navbar-dev {
|
||||||
|
&.fixed-top:before {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
@extend .progress-bar-striped;
|
@extend .progress-bar-striped;
|
||||||
@extend .bg-warning;
|
@extend .bg-warning;
|
||||||
|
|
|
@ -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
|
.container
|
||||||
%a.navbar-brand{ href: '/', title: APP_CONFIG["site_name"] }
|
%a.navbar-brand{ href: '/', title: APP_CONFIG["site_name"] }
|
||||||
- if APP_CONFIG["use_svg_logo"]
|
- if APP_CONFIG["use_svg_logo"]
|
||||||
= render inline: Rails.application.config.justask_svg_logo
|
= render inline: Rails.application.config.justask_svg_logo
|
||||||
- else
|
- else
|
||||||
= APP_CONFIG["site_name"]
|
= 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 }
|
%button.navbar-toggler{ data: { bs_target: '#j2-main-navbar-collapse', bs_toggle: :collapse }, type: :button }
|
||||||
%span.visually-hidden= t("navigation.toggle")
|
%span.visually-hidden= t("navigation.toggle")
|
||||||
%span.navbar-toggler-icon
|
%span.navbar-toggler-icon
|
||||||
|
|
Loading…
Reference in a new issue