2022-03-16 16:23:53 +01:00
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-08-17 13:53:07 +02:00
|
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
2022-09-09 13:08:24 +02:00
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2022-08-17 13:53:07 +02:00
|
|
|
['Modifications']] }
|
2022-03-16 16:23:53 +01:00
|
|
|
.container
|
|
|
|
%h1.page-title
|
|
|
|
Historique des modifications du formulaire
|
|
|
|
|
|
|
|
.container
|
|
|
|
- previous_revision = nil
|
|
|
|
- @procedure.revisions.each do |revision|
|
|
|
|
- if previous_revision.present? && !revision.draft?
|
|
|
|
- changes = previous_revision.compare(revision)
|
2022-09-06 09:58:09 +02:00
|
|
|
.card.mb-4
|
|
|
|
%h2.card-title= "Modifications publiées le #{l(revision.published_at, format: '%d %B %Y à %R')}"
|
|
|
|
= render partial: 'revision_changes', locals: { changes: changes }
|
2022-03-16 16:23:53 +01:00
|
|
|
- previous_revision = revision
|