Merge pull request #9400 from demarches-simplifiees/bug-close-depubliee

fix: display close when procedure depubliee
This commit is contained in:
Paul Chavard 2023-08-29 16:12:17 +00:00 committed by GitHub
commit 693f01c5c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,11 +55,11 @@
.text-right
%p.fr-mb-0.width-max-content N° #{number_with_html_delimiter(procedure.id)}
- if procedure.close?
- if procedure.close? || procedure.depubliee?
%span.fr-badge.fr-badge--sm.fr-badge--warning
= t('closed', scope: [:layouts, :breadcrumb])
- elsif procedure.locked?
- elsif procedure.publiee?
%span.fr-badge.fr-badge--sm.fr-badge--success
= t('published', scope: [:layouts, :breadcrumb])