Merge pull request #1886 from betagouv/fix-1873

[Fix #1873] Add pre maintenance warning
This commit is contained in:
Mathieu Magnin 2018-05-02 17:00:25 +02:00 committed by GitHub
commit be9c5d07c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,15 @@
.maintenance {
width: 100%;
position: fixed;
top: 0;
z-index: 100;
display: flex;
flex-direction: column;
justify-content: center;
span {
margin: auto;
background: #FFD8A6;
padding: 0 4px;
}
}

View file

@ -12,6 +12,7 @@
// defined in the other CSS/SCSS files in this directory. It is generally better to create a new
// file per style scope.
//
// = require _maintenance
// = require _card
// = require _helpers
// = require _turbolinks

View file

@ -0,0 +1,8 @@
@import "colors";
.maintenance {
padding: 20px;
text-align: center;
width: 100%;
background: $orange-bg;
}

View file

@ -0,0 +1,4 @@
- if Flipflop.pre_maintenance_mode?
.maintenance
%span
Une opération de maintenance est prévue sur demarches-simplifiees.fr à 23 h 00. La plateforme sera inaccessible pendant une vingtaine de minutes.

View file

@ -17,6 +17,7 @@
= csrf_meta_tags
%body
= render partial: 'layouts/support_navigator_banner'
= render partial: 'layouts/pre_maintenance'
- if Rails.env == 'staging'
#beta
Env Test

View file

@ -21,6 +21,7 @@
.page-wrapper
= render partial: "layouts/support_navigator_banner"
= render partial: "layouts/ie_lt_10"
= render partial: 'layouts/pre_maintenance'
- if Rails.env == "staging"
#beta
Env Test

View file

@ -22,5 +22,6 @@ Flipflop.configure do
default: Rails.env.production?
end
feature :pre_maintenance_mode
feature :maintenance_mode
end