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