From b39cb8e8a4d9b48e7fad5a373b9886d4a6099555 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 27 Jul 2013 09:56:08 +0200 Subject: [PATCH] Fixed tooltip and duration in agenda. The tooltip did not show the end of an agenda item, but of the hole event. If a item was closed, it was not used to calculate the end of the event. Fixed #833 --- openslides/agenda/templates/agenda/item_row.html | 4 ++-- openslides/agenda/templates/agenda/overview.html | 2 +- openslides/agenda/views.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index 0e083e909..1b1ffac32 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -45,9 +45,9 @@
{% if node.duration %} {{ node.duration }} h - {% if start and end %} + {% if node.tooltip %} + {{ node.tooltip|date:"DATETIME_FORMAT" }}"> {% endif %} {% endif %} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 3e8ebe632..095f04f48 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -111,7 +111,7 @@ {% if items %}
    {% recursetree items %} -
  1. +
  2. {% include "agenda/item_row.html" %} {% if not node.is_leaf_node %}
      diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index cebeebbc7..3c7268d3e 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -59,8 +59,8 @@ class Overview(TemplateView): duration = timedelta() for item in items: - if not item.closed and (item.duration is not None - and len(item.duration) > 0): + if (item.duration is not None and + len(item.duration) > 0): duration_list = item.duration.split(':') duration += timedelta(hours=int(duration_list[0]), minutes=int(duration_list[1]))