refactor(admin): rename procedures/_unpublished_changes_{navbar,sticky} partial
This commit is contained in:
parent
9ed2de9bb7
commit
6efd9ae747
5 changed files with 4 additions and 4 deletions
|
@ -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)],
|
||||
|
|
|
@ -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", ""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -71,7 +71,7 @@ fr:
|
|||
path_not_available:
|
||||
owner: Cette url est identique à celle d’une autre de vos démarches publiées. Si vous publiez cette démarche, l’ancienne sera dépubliée et ne sera plus accessible au public.
|
||||
not_owner: Cette url est identique à celle d’une 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
|
||||
|
|
Loading…
Reference in a new issue