diff --git a/caldav/models.py b/caldav/models.py index e92e0ec..8b6b1b5 100644 --- a/caldav/models.py +++ b/caldav/models.py @@ -56,7 +56,7 @@ class cls_caldav(): if "DESCRIPTION" in event.keys(): item.desc = event["DESCRIPTION"] - if "*done*" in item.desc: + if "#" in item.desc: item.done = True item.dtstart = event["DTSTART"].dt.strftime("%d.%m.%Y %H:%M") item.dtend = event["DTEND"].dt.strftime("%d.%m.%Y %H:%M") diff --git a/caldav/templates/task/task.html b/caldav/templates/task/task.html index 23eaebb..20651d0 100644 --- a/caldav/templates/task/task.html +++ b/caldav/templates/task/task.html @@ -1,17 +1,18 @@ {% if latest_task_list %} + {% for task in latest_task_list %}      {% endfor %} -
Jour
{{task.key}}{{ task.name }}
- ------------------------------------------------------- - - + + + + {% for task in night_task_list %}      {% endfor %}
 
Nuit
{{task.key}}{{ task.name }}
+ {% else %} -

No task are available.

+

Aucune tâche disponible.

{% endif %} \ No newline at end of file diff --git a/caldav/templates/vhc/vhc_view.html b/caldav/templates/vhc/vhc_view.html index c965c93..78cb64c 100644 --- a/caldav/templates/vhc/vhc_view.html +++ b/caldav/templates/vhc/vhc_view.html @@ -19,5 +19,5 @@ {% endfor %} {% else %} -

No task are available.

+

Aucune information véhicule

{% endif %} \ No newline at end of file