dossier: don't display 'brouillon' in the timeline if not required
Unless the user is actually editing a brouillon, we don't need to show this state.
This commit is contained in:
parent
530baf6ca6
commit
ea3267c0d7
2 changed files with 5 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
|||
.status-overview
|
||||
- if !dossier.termine?
|
||||
%ul.status-timeline
|
||||
%li.brouillon{ class: dossier.brouillon? ? 'active' : nil }
|
||||
brouillon
|
||||
- if dossier.brouillon?
|
||||
%li.brouillon{ class: dossier.brouillon? ? 'active' : nil }
|
||||
brouillon
|
||||
%li.en-construction{ class: dossier.en_construction? ? 'active' : nil }
|
||||
en construction
|
||||
%li.en-instruction{ class: dossier.en_instruction? ? 'active' : nil }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue