refactor: avoid a sql request on every page

This commit is contained in:
simon lehericey 2023-11-30 11:12:41 +01:00
parent a330118929
commit d7a6619725
2 changed files with 4 additions and 1 deletions

View file

@ -42,7 +42,7 @@
= render partial: 'layouts/display_theme_modal'
.page-wrapper
- if feature_enabled?(:team_on_strike)
- if ENV['TEAM_ON_STRIKE'].present?
= render partial: 'layouts/strike_banner'
= render partial: "layouts/outdated_browser_banner"
= render partial: 'layouts/pre_maintenance'

View file

@ -8,6 +8,9 @@ APPLICATION_BASE_URL="https://www.demarches-simplifiees.fr"
# If defined to "staging", tell the app that it's running on a staging instance
DS_ENV="staging"
# You know, we are a french team
# TEAM_ON_STRIKE='pas content.'
# France Connect usage
# FRANCE_CONNECT_ENABLED="disabled" # "enabled" by default