refactor(admin): rename procedures/_unpublished_changes_{navbar,sticky} partial

This commit is contained in:
Colin Darie 2024-08-21 17:28:11 +02:00
parent 9ed2de9bb7
commit 6efd9ae747
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
5 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
- if @procedure.draft_changed?
- content_for(:sticky_header) do
= render partial: 'administrateurs/procedures/unpublished_changes_navbar', locals: { procedure: @procedure }
= render partial: 'administrateurs/procedures/unpublished_changes_sticky_header', locals: { procedure: @procedure }
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],

View file

@ -52,7 +52,7 @@
- if @procedure.draft_changed?
= turbo_stream.update "sticky-header" do
= render partial: "administrateurs/procedures/unpublished_changes_navbar", locals: { procedure: @procedure }
= render partial: "administrateurs/procedures/unpublished_changes_sticky_header", locals: { procedure: @procedure }
- else
= turbo_stream.update "sticky-header", ""

View file

@ -71,7 +71,7 @@ en:
path_not_available:
owner: This URL is identical to another of your published procedures. If you publish this procedure, the old one will be unpublished and will no longer be accessible to the public.
not_owner: This URL is identical to another procedure, you must modify it.
unpublished_changes_navbar:
unpublished_changes_sticky_header:
intro_html: Changes made will only be visible <strong>after the next publication</strong>
see_changes: View changes
publish_changes: Publish changes

View file

@ -71,7 +71,7 @@ fr:
path_not_available:
owner: Cette url est identique à celle dune autre de vos démarches publiées. Si vous publiez cette démarche, lancienne sera dépubliée et ne sera plus accessible au public.
not_owner: Cette url est identique à celle dune autre démarche, vous devez la modifier afin de pouvoir publier votre démarche.
unpublished_changes_navbar:
unpublished_changes_sticky_header:
intro_html: Les modifications effectuées ne seront visibles <strong>qu'à la prochaine publication</strong>
see_changes: Voir les modifications
publish_changes: Publier les modifications