diff --git a/app/assets/images/icons/attachment.svg b/app/assets/images/icons/attached.svg similarity index 100% rename from app/assets/images/icons/attachment.svg rename to app/assets/images/icons/attached.svg diff --git a/app/assets/stylesheets/new_design/icons.scss b/app/assets/stylesheets/new_design/icons.scss index 1d3c21b16..c95fc87df 100644 --- a/app/assets/stylesheets/new_design/icons.scss +++ b/app/assets/stylesheets/new_design/icons.scss @@ -59,8 +59,8 @@ background-image: image-url("icons/bubble.svg"); } - &.attachment { - background-image: image-url("icons/attachment.svg"); + &.attached { + background-image: image-url("icons/attached.svg"); } &.preview { diff --git a/app/views/instructeurs/dossiers/_header_actions.html.haml b/app/views/instructeurs/dossiers/_header_actions.html.haml index 1df589d7a..dc63ef8d0 100644 --- a/app/views/instructeurs/dossiers/_header_actions.html.haml +++ b/app/views/instructeurs/dossiers/_header_actions.html.haml @@ -10,7 +10,7 @@ - if !PiecesJustificativesService.liste_pieces_justificatives(dossier).empty? %span.dropdown.print-menu-opener %button.button.dropdown-button.icon-only - %span.icon.attachment + %span.icon.attached %ul.print-menu.dropdown-content %li - if PiecesJustificativesService.pieces_justificatives_total_size(dossier) < Dossier::TAILLE_MAX_ZIP diff --git a/app/views/root/patron.html.haml b/app/views/root/patron.html.haml index 50d68a193..f311584d7 100644 --- a/app/views/root/patron.html.haml +++ b/app/views/root/patron.html.haml @@ -14,7 +14,7 @@ %span.icon.edit %span.icon.in-progress %span.icon.bubble - %span.icon.attachment + %span.icon.attached %span.icon.lock %span.icon.add %span.icon.justificatif diff --git a/app/views/shared/attachment/_show.html.haml b/app/views/shared/attachment/_show.html.haml index 72d39c6c1..41c747055 100644 --- a/app/views/shared/attachment/_show.html.haml +++ b/app/views/shared/attachment/_show.html.haml @@ -8,7 +8,7 @@ .attachment-link{ 'data-attachment-id': attachment.id, 'data-attachment-check-url': attachment_check_url } - if should_display_link = link_to url_for(attachment.blob), target: '_blank', rel: 'noopener', title: "Télécharger la pièce jointe" do - %span.icon.attachment + %span.icon.attached = attachment.filename.to_s - if !attachment.virus_scanner.started? (ce fichier n’a pas été analysé par notre antivirus, téléchargez-le avec précaution)