From bdb961f28044cb5feb2e211f5c5870eb14ade6b2 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 3 Sep 2018 11:40:08 +0200 Subject: [PATCH] Rename support-navigator-banner to outdated-browser-banner --- app/assets/stylesheets/application.scss | 2 +- ...pport_navigator_banner.scss => outdated_browser_banner.scss} | 2 +- ...pport_navigator_banner.scss => outdated_browser_banner.scss} | 2 +- ...ator_banner.html.haml => _outdated_browser_banner.html.haml} | 2 +- app/views/layouts/application.html.haml | 2 +- app/views/layouts/new_application.html.haml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename app/assets/stylesheets/new_design/{support_navigator_banner.scss => outdated_browser_banner.scss} (89%) rename app/assets/stylesheets/{support_navigator_banner.scss => outdated_browser_banner.scss} (88%) rename app/views/layouts/{_support_navigator_banner.html.haml => _outdated_browser_banner.html.haml} (93%) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 85627b3b1..46390dbaf 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -38,7 +38,7 @@ // = require recapitulatif // = require search // = require siret -// = require support_navigator_banner +// = require outdated_browser_banner // = require switch_menu // = require autocomplete // = require users diff --git a/app/assets/stylesheets/new_design/support_navigator_banner.scss b/app/assets/stylesheets/new_design/outdated_browser_banner.scss similarity index 89% rename from app/assets/stylesheets/new_design/support_navigator_banner.scss rename to app/assets/stylesheets/new_design/outdated_browser_banner.scss index 327efbcfd..3630c80b9 100644 --- a/app/assets/stylesheets/new_design/support_navigator_banner.scss +++ b/app/assets/stylesheets/new_design/outdated_browser_banner.scss @@ -1,7 +1,7 @@ @import "colors"; @import "constants"; -#support-navigator-banner { +#outdated-browser-banner { width: 100%; bottom: 0; left: 0; diff --git a/app/assets/stylesheets/support_navigator_banner.scss b/app/assets/stylesheets/outdated_browser_banner.scss similarity index 88% rename from app/assets/stylesheets/support_navigator_banner.scss rename to app/assets/stylesheets/outdated_browser_banner.scss index bfb8a21fe..6ec1c0590 100644 --- a/app/assets/stylesheets/support_navigator_banner.scss +++ b/app/assets/stylesheets/outdated_browser_banner.scss @@ -1,4 +1,4 @@ -#support-navigator-banner { +#outdated-browser-banner { position: fixed; text-align: center; line-height: 2em; diff --git a/app/views/layouts/_support_navigator_banner.html.haml b/app/views/layouts/_outdated_browser_banner.html.haml similarity index 93% rename from app/views/layouts/_support_navigator_banner.html.haml rename to app/views/layouts/_outdated_browser_banner.html.haml index 9e183ebc8..67c08e26b 100644 --- a/app/views/layouts/_support_navigator_banner.html.haml +++ b/app/views/layouts/_outdated_browser_banner.html.haml @@ -1,6 +1,6 @@ -# See config/browser.rb - if !browser.modern? - #support-navigator-banner + #outdated-browser-banner .container Attention, votre navigateur (#{browser.name} #{browser.version}) est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement. Nous vous recommendons fortement de %a{ href: "https://browser-update.org/fr/update.html", target: "_blank" }mettre à jour votre navigateur diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 714c643bb..5ea2ebf56 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -21,7 +21,7 @@ sentry: #{raw(sentry_config)} }]; %body - = render partial: 'layouts/support_navigator_banner' + = render partial: 'layouts/outdated_browser_banner' = render partial: 'layouts/pre_maintenance' - if staging? #beta diff --git a/app/views/layouts/new_application.html.haml b/app/views/layouts/new_application.html.haml index 5664fbf75..164b26452 100644 --- a/app/views/layouts/new_application.html.haml +++ b/app/views/layouts/new_application.html.haml @@ -27,7 +27,7 @@ }]; %body .page-wrapper - = render partial: "layouts/support_navigator_banner" + = render partial: "layouts/outdated_browser_banner" = render partial: 'layouts/pre_maintenance' - if staging? #beta