From 19d73f13f089353ae66d4f038318e307421bca8e Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 8 Sep 2020 14:52:31 +0200 Subject: [PATCH] variabilize banner message --- app/views/layouts/_pre_maintenance.html.haml | 9 ++------- config/initializers/flipper.rb | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/_pre_maintenance.html.haml b/app/views/layouts/_pre_maintenance.html.haml index 669ba8fe5..06ed29093 100644 --- a/app/views/layouts/_pre_maintenance.html.haml +++ b/app/views/layouts/_pre_maintenance.html.haml @@ -1,9 +1,4 @@ -- if feature_enabled?(:pre_maintenance_mode) +- if ENV['BANNER_MESSAGE'].present? .site-banner.warning .container - .site-banner-icon 🕚 - .site-banner-text - %strong - Une opération de maintenance est prévue sur #{APPLICATION_NAME} à 23 h 00. - %br - La plateforme sera inaccessible pendant une vingtaine de minutes. + = sanitize(ENV['BANNER_MESSAGE']) diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 22886ee3a..d91b227e9 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -34,7 +34,6 @@ features = [ :maintenance_mode, :mini_profiler, :operation_log_serialize_subject, - :pre_maintenance_mode, :xray, :carte_ign, :localization