diff --git a/app/views/layouts/_account_dropdown.haml b/app/views/layouts/_account_dropdown.haml index 5cf464c75..21ddf9518 100644 --- a/app/views/layouts/_account_dropdown.haml +++ b/app/views/layouts/_account_dropdown.haml @@ -8,30 +8,30 @@ - if administration_signed_in? %li = link_to manager_root_path, class: "menu-item menu-link" do - = image_tag "icons/super-admin.svg" + = image_tag "icons/super-admin.svg", alt: '' Passer en super-admin - if multiple_devise_profile_connect? - if user_signed_in? && nav_bar_profile != :user %li = link_to dossiers_path, class: "menu-item menu-link" do - = image_tag "icons/switch-profile.svg" + = image_tag "icons/switch-profile.svg", alt: '' Passer en usager - if instructeur_signed_in? && nav_bar_profile != :instructeur %li = link_to instructeur_procedures_path, class: "menu-item menu-link" do - = image_tag "icons/switch-profile.svg" + = image_tag "icons/switch-profile.svg", alt: '' Passer en instructeur - if administrateur_signed_in? && nav_bar_profile != :administrateur %li = link_to admin_procedures_path, class: "menu-item menu-link" do - = image_tag "icons/switch-profile.svg" + = image_tag "icons/switch-profile.svg", alt: '' Passer en administrateur %li = link_to profil_path, class: "menu-item menu-link" do - = image_tag "icons/switch-profile.svg" + = image_tag "icons/switch-profile.svg", alt: '' Voir mon profil %li = link_to destroy_user_session_path, method: :delete, class: "menu-item menu-link" do - = image_tag "icons/sign-out.svg" + = image_tag "icons/sign-out.svg", alt: '' Se déconnecter diff --git a/app/views/layouts/_new_header.haml b/app/views/layouts/_new_header.haml index a880f875c..23abde450 100644 --- a/app/views/layouts/_new_header.haml +++ b/app/views/layouts/_new_header.haml @@ -38,7 +38,7 @@ = form_tag instructeur_recherche_path, method: :get, class: "form" do = text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: "Rechercher un dossier" %button{ title: "Rechercher" } - = image_tag "icons/search-blue.svg" + = image_tag "icons/search-blue.svg", alt: '' - if nav_bar_profile == :user && user_signed_in? && current_user.dossiers.count > 2 %li @@ -46,7 +46,7 @@ = form_tag recherche_dossiers_path, method: :post, class: "form" do = text_field_tag :dossier_id, "", placeholder: "Numéro de dossier" %button{ title: "Rechercher" } - = image_tag "icons/search-blue.svg" + = image_tag "icons/search-blue.svg", alt: '' - if instructeur_signed_in? || user_signed_in? %li diff --git a/app/views/shared/dossiers/messages/_message_icon.html.haml b/app/views/shared/dossiers/messages/_message_icon.html.haml index 0d8eb2db1..849337641 100644 --- a/app/views/shared/dossiers/messages/_message_icon.html.haml +++ b/app/views/shared/dossiers/messages/_message_icon.html.haml @@ -1,7 +1,7 @@ - if commentaire.sent_by_system? - = image_tag('icons/mail.svg', class: 'person-icon') + = image_tag('icons/mail.svg', class: 'person-icon', alt: '') - elsif commentaire.sent_by?(connected_user) - = image_tag('icons/account-circle.svg', class: 'person-icon') + = image_tag('icons/account-circle.svg', class: 'person-icon', alt: '') - else - = image_tag('icons/blue-person.svg', class: 'person-icon') + = image_tag('icons/blue-person.svg', class: 'person-icon', alt: '')