Merge pull request #8463 from marc-bouvier/strike-banner

add strike banner
This commit is contained in:
Paul Chavard 2023-01-19 12:03:49 +01:00 committed by GitHub
commit c62d83a7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

View file

@ -1,9 +0,0 @@
#main-container{ class: "col-xs-#{main_container_size}" }
.row
= render partial: 'layouts/outdated_browser_banner'
= render partial: 'layouts/pre_maintenance'
.row
= render partial: 'layouts/flash_messages'
.row
= yield
.row

View file

@ -0,0 +1,6 @@
#strike-banner.site-banner
.container
.site-banner-icon ⚠️
.site-banner-text
%strong
En raison de la grève nationale interprofessionnelle, les délais de réponse au support pourront être allongés pendant les prochains jours.

View file

@ -38,6 +38,8 @@
%body{ { id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil, data: { controller: 'turbo' } }.compact } %body{ { id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil, data: { controller: 'turbo' } }.compact }
= render partial: 'layouts/skiplinks' = render partial: 'layouts/skiplinks'
.page-wrapper .page-wrapper
- if feature_enabled?(:team_on_strike)
= render partial: 'layouts/strike_banner'
= render partial: "layouts/outdated_browser_banner" = render partial: "layouts/outdated_browser_banner"
= render partial: 'layouts/pre_maintenance' = render partial: 'layouts/pre_maintenance'