clean(expiration_banner): dedicated to user not shared

This commit is contained in:
Martin 2021-12-02 15:54:18 +01:00
parent 1bb868714c
commit 8e9b15aef4
4 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
= t('views.users.dossiers.show.header.dossier_number', dossier_id: dossier.id)
= t('views.users.dossiers.show.header.created_date', date_du_dossier: I18n.l(dossier.created_at))
= render(partial: 'shared/dossiers/expiration_banner', locals: {dossier: dossier})
= render(partial: 'users/dossiers/expiration_banner', locals: {dossier: dossier})
.header-actions
- if current_user.owns?(dossier)

View file

@ -10,7 +10,7 @@
- if dossier.en_construction_at.present?
= t('views.users.dossiers.show.header.submit_date', date_du_dossier: I18n.l(dossier.en_construction_at))
= render(partial: 'shared/dossiers/expiration_banner', locals: {dossier: dossier})
= render(partial: 'users/dossiers/expiration_banner', locals: {dossier: dossier})
- if current_user.owns?(dossier)

View file

@ -1,4 +1,4 @@
describe 'shared/dossiers/expiration_banner.html.haml', type: :view do
describe 'users/dossiers/expiration_banner.html.haml', type: :view do
include DossierHelper
let(:dossier) do
@ -10,7 +10,7 @@ describe 'shared/dossiers/expiration_banner.html.haml', type: :view do
end
let(:i18n_key_state) { state }
subject do
render('shared/dossiers/expiration_banner.html.haml',
render('users/dossiers/expiration_banner.html.haml',
dossier: dossier,
current_user: build(:user))
end