Projet

Général

Profil

« Précédent | Suivant » 

Révision e3482db9

Ajouté par Serghei Mihai il y a plus de 9 ans

agenda: graying the arrival and departure only for other services

Closes #2532

Voir les différences:

calebasse/agenda/appointments.py
202 202
            continue
203 203
        start_time = interval_set.lower_bound()
204 204
        end_time = interval_set.upper_bound()
205
        services = [s.slug for s in time_table.services.all() if s != service]
206 205

  
207
        if services:
208
            appointment_type = 'busy-elsewhere'
209
        else:
206
        services = time_table.services.all()
207
        common_service = service in services
208
        services = [s.slug for s in services if s != service]
209
        if common_service:
210 210
            appointment_type = 'info'
211

  
211
        else:
212
            appointment_type = 'busy-elsewhere'
212 213
        appointment = Appointment()
213 214
        appointment.other_services_names = services
214 215
        appointment.init_start_stop(u"Arrivée", start_time, appointment_type)

Formats disponibles : Unified diff