Skip to content
Extraits de code Groupes Projets
Valider d6f71b66 rédigé par echarp's avatar echarp
Parcourir les fichiers

Missing cities were breaking the month display, corrected

parent 20eef315
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,10 +44,9 @@ module EventsHelper
end: l(event.end_time, format: :at)
end
# Select the events to display in a month, sorted
# Select the events to display in a month
def month_events(events, date)
events.select { |e| (e.start_time.to_date..e.end_time.to_date).cover? date }
.sort_by(&:city)
end
def display_attr(item, label, value = item[label])
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter