From 4cdd5bcf0772d0ad67c1c94559e4254919823036 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 23 Nov 2022 15:47:43 +0100 Subject: [PATCH] =?UTF-8?q?fix(a11y):=20erreurs=20code=20source=20(Crit?= =?UTF-8?q?=C3=A8re=208.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit related #8051 --- app/views/layouts/_header.haml | 2 +- app/views/layouts/application.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_header.haml b/app/views/layouts/_header.haml index 6793235b8..b3db00781 100644 --- a/app/views/layouts/_header.haml +++ b/app/views/layouts/_header.haml @@ -50,7 +50,7 @@ - elsif nav_bar_profile == :instructeur = render partial: 'shared/help/help_dropdown_instructeur' - else - %li= render partial: 'shared/help/help_button' + = render partial: 'shared/help/help_button' diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index da732a03e..62d58b0ec 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -35,7 +35,7 @@ = yield(:invisible_captcha_styles) - %body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil } + %body{ { id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil }.compact } = render partial: 'layouts/skiplinks' .page-wrapper = render partial: "layouts/outdated_browser_banner"