Merge pull request #836 from ostcar/issue-833
Fixed tooltip and duration in agenda.
This commit is contained in:
commit
b7edee8fdf
@ -45,9 +45,9 @@
|
||||
<div class="duration">
|
||||
{% if node.duration %}
|
||||
{{ node.duration }} h
|
||||
{% if start and end %}
|
||||
{% if node.tooltip %}
|
||||
<a class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'End' %}:
|
||||
{{ end|date:"DATETIME_FORMAT" }}"><i class="icon-clock"></i>
|
||||
{{ node.tooltip|date:"DATETIME_FORMAT" }}"><i class="icon-clock"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -111,7 +111,7 @@
|
||||
{% if items %}
|
||||
<ol class="agenda_list {% if perms.agenda.can_manage_agenda %}sortable{% endif %}">
|
||||
{% recursetree items %}
|
||||
<li class="draggable{% if item.active %} activeline{% endif %}{% if item.closed %} offline{% endif %}">
|
||||
<li class="draggable">
|
||||
{% include "agenda/item_row.html" %}
|
||||
{% if not node.is_leaf_node %}
|
||||
<ol>
|
||||
|
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user