style: remove obsolete usage of cell-link

This commit is contained in:
Colin Darie 2024-11-25 12:38:20 +01:00
parent dc8cc2eba8
commit 741ac527ef
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
5 changed files with 19 additions and 22 deletions

View file

@ -45,8 +45,8 @@
%td.fr-cell--numeric %td.fr-cell--numeric
= link_to(expert_avis_path(avis.procedure, avis), class: "fr-link") do = link_to(expert_avis_path(avis.procedure, avis), class: "fr-link") do
= avis.dossier.id = avis.dossier.id
%td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis))
%td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis))
.fr-table__footer .fr-table__footer
.fr-table__footer--start .fr-table__footer--start
.fr-table__footer--middle .fr-table__footer--middle

View file

@ -129,7 +129,7 @@
%td.fr-cell--numeric %td.fr-cell--numeric
- if p.hidden_by_administration_at.present? - if p.hidden_by_administration_at.present?
%span.cell-link= p.dossier_id %span= p.dossier_id
- else - else
%a.fr-link.relative{ href: path } %a.fr-link.relative{ href: path }
= p.dossier_id = p.dossier_id
@ -140,12 +140,12 @@
- p.columns.each do |column| - p.columns.each do |column|
%td.fr-cell--multiline %td.fr-cell--multiline
- if p.hidden_by_administration_at.present? - if p.hidden_by_administration_at.present?
%span.cell-link %span
= column.is_a?(Hash) ? tags_label(column[:value]) : column = column.is_a?(Hash) ? tags_label(column[:value]) : column
- if p.hidden_by_user_at.present? - if p.hidden_by_user_at.present?
= "- #{t("views.instructeurs.dossiers.deleted_reason.#{p.hidden_by_reason}")}" = "- #{t("views.instructeurs.dossiers.deleted_reason.#{p.hidden_by_reason}")}"
- else - else
%a.cell-link{ href: path } %a{ href: path }
= column.is_a?(Hash) ? tags_label(column[:value]) : column = column.is_a?(Hash) ? tags_label(column[:value]) : column
= "- #{t("views.instructeurs.dossiers.deleted_reason.#{p.hidden_by_reason}")}" if p.hidden_by_user_at.present? = "- #{t("views.instructeurs.dossiers.deleted_reason.#{p.hidden_by_reason}")}" if p.hidden_by_user_at.present?
@ -155,11 +155,11 @@
- status << pending_correction_badge(:for_instructeur, html_class: "fr-mt-1v") - status << pending_correction_badge(:for_instructeur, html_class: "fr-mt-1v")
- elsif p.state.to_sym == :en_construction && p.resolved_corrections? - elsif p.state.to_sym == :en_construction && p.resolved_corrections?
- status << correction_resolved_badge(html_class: "fr-mt-1v") - status << correction_resolved_badge(html_class: "fr-mt-1v")
= link_to_if(p.hidden_by_administration_at.blank?, safe_join(status), path, class: "cell-link flex column") = link_to_if(p.hidden_by_administration_at.blank?, safe_join(status), path, class: "flex column")
- if @procedure.sva_svr_enabled? - if @procedure.sva_svr_enabled?
%td %td
%span.cell-link %span
= link_to_if p.hidden_by_administration_at.blank?, render(Instructeurs::SVASVRDecisionBadgeComponent.new(projection_or_dossier: p, procedure: @procedure)), path = link_to_if p.hidden_by_administration_at.blank?, render(Instructeurs::SVASVRDecisionBadgeComponent.new(projection_or_dossier: p, procedure: @procedure)), path
%td.follow-col %td.follow-col

View file

@ -1,13 +1,13 @@
%td.fr-cell--numeric %td.fr-cell--numeric
%p.cell-link= p.dossier_id %p= p.dossier_id
%td %td
%p.cell-link= procedure_libelle %p= procedure_libelle
%td %td
%p.cell-link %p
= user_email = user_email
= "- #{t('views.instructeurs.dossiers.deleted_by_administration')}" if p.hidden_by_administration_at.present? = "- #{t('views.instructeurs.dossiers.deleted_by_administration')}" if p.hidden_by_administration_at.present?
%td %td
%p.cell-link.flex.column= status_badge(p.state) %p.flex.column= status_badge(p.state)

View file

@ -37,16 +37,13 @@
%tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] } %tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] }
- if instructeur_and_expert_dossier - if instructeur_and_expert_dossier
%td.fr-cell--numeric %td.fr-cell--numeric
.cell-link.relative .relative
= p.dossier_id = p.dossier_id
- if @notifications_dossier_ids.include?(p.dossier_id) - if @notifications_dossier_ids.include?(p.dossier_id)
%span.notifications{ 'aria-label': 'notifications' } %span.notifications{ 'aria-label': 'notifications' }
%td %td= procedure_libelle
.cell-link= procedure_libelle %td= user_email
%td %td.flex.column= status_badge(p.state)
.cell-link= user_email
%td
.cell-link.flex.column= status_badge(p.state)
- elsif hidden_by_administration - elsif hidden_by_administration
= render partial: "recherche/hidden_dossier", locals: {p: p, procedure_libelle: procedure_libelle, user_email: user_email} = render partial: "recherche/hidden_dossier", locals: {p: p, procedure_libelle: procedure_libelle, user_email: user_email}
@ -59,13 +56,13 @@
%span.notifications{ 'aria-label': 'notifications' } %span.notifications{ 'aria-label': 'notifications' }
%td %td
%a.cell-link{ href: path }= procedure_libelle %a{ href: path }= procedure_libelle
%td %td
%a.cell-link{ href: path }= user_email %a{ href: path }= user_email
%td %td
%a.cell-link.flex.column{ href: path }= status_badge(p.state) %a.flex.column{ href: path }= status_badge(p.state)
- if instructeur_dossier && expert_dossier - if instructeur_dossier && expert_dossier

View file

@ -8,7 +8,7 @@
%div %div
%h3.card-title %h3.card-title
- if ["dossiers-transferes", "dossiers-supprimes"].exclude?(@statut) - if ["dossiers-transferes", "dossiers-supprimes"].exclude?(@statut)
= link_to(url_for_dossier(dossier), class: 'cell-link') do = link_to(url_for_dossier(dossier)) do
= dossier.procedure.libelle = dossier.procedure.libelle
- else - else
= dossier.procedure.libelle = dossier.procedure.libelle