Merge pull request #1886 from betagouv/fix-1873
[Fix #1873] Add pre maintenance warning
This commit is contained in:
commit
be9c5d07c3
7 changed files with 31 additions and 0 deletions
15
app/assets/stylesheets/_maintenance.scss
Normal file
15
app/assets/stylesheets/_maintenance.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,6 +12,7 @@
|
||||||
// defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
// defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
||||||
// file per style scope.
|
// file per style scope.
|
||||||
//
|
//
|
||||||
|
// = require _maintenance
|
||||||
// = require _card
|
// = require _card
|
||||||
// = require _helpers
|
// = require _helpers
|
||||||
// = require _turbolinks
|
// = require _turbolinks
|
||||||
|
|
8
app/assets/stylesheets/new_design/_maintenance.scss
Normal file
8
app/assets/stylesheets/new_design/_maintenance.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
|
.maintenance {
|
||||||
|
padding: 20px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
background: $orange-bg;
|
||||||
|
}
|
4
app/views/layouts/_pre_maintenance.html.haml
Normal file
4
app/views/layouts/_pre_maintenance.html.haml
Normal 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.
|
|
@ -17,6 +17,7 @@
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
%body
|
%body
|
||||||
= render partial: 'layouts/support_navigator_banner'
|
= render partial: 'layouts/support_navigator_banner'
|
||||||
|
= render partial: 'layouts/pre_maintenance'
|
||||||
- if Rails.env == 'staging'
|
- if Rails.env == 'staging'
|
||||||
#beta
|
#beta
|
||||||
Env Test
|
Env Test
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
.page-wrapper
|
.page-wrapper
|
||||||
= render partial: "layouts/support_navigator_banner"
|
= render partial: "layouts/support_navigator_banner"
|
||||||
= render partial: "layouts/ie_lt_10"
|
= render partial: "layouts/ie_lt_10"
|
||||||
|
= render partial: 'layouts/pre_maintenance'
|
||||||
- if Rails.env == "staging"
|
- if Rails.env == "staging"
|
||||||
#beta
|
#beta
|
||||||
Env Test
|
Env Test
|
||||||
|
|
|
@ -22,5 +22,6 @@ Flipflop.configure do
|
||||||
default: Rails.env.production?
|
default: Rails.env.production?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
feature :pre_maintenance_mode
|
||||||
feature :maintenance_mode
|
feature :maintenance_mode
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue