Show section numbers only if none of sections start with numbers
This commit is contained in:
parent
f77285ded6
commit
4feda01b6f
2 changed files with 15 additions and 4 deletions
|
@ -1,5 +1,2 @@
|
|||
%h2.header-section
|
||||
- libelle_starts_with_number = (champ.libelle =~ /^\d/)
|
||||
- if !libelle_starts_with_number
|
||||
= "#{champ.section_index}."
|
||||
= champ.libelle
|
||||
= champ.libelle_with_section_index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue