helpers: add ServiceHelper#formatted_horaires
This commit is contained in:
parent
c7d247e9a1
commit
ad57c6ef99
2 changed files with 6 additions and 1 deletions
5
app/helpers/service_helper.rb
Normal file
5
app/helpers/service_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module ServiceHelper
|
||||
def formatted_horaires(horaires)
|
||||
horaires.sub(/\S/, &:downcase)
|
||||
end
|
||||
end
|
|
@ -27,7 +27,7 @@
|
|||
%a{ href: "tel:#{service.telephone}" }= service.telephone
|
||||
|
||||
%p
|
||||
Horaires : #{ service.horaires.sub(/\S/, &:downcase) }
|
||||
Horaires : #{formatted_horaires(service.horaires)}
|
||||
|
||||
- politiques = politiques_conservation_de_donnees(procedure)
|
||||
- if politiques.present?
|
||||
|
|
Loading…
Reference in a new issue