bugfix for duration_only mode #137 (#142)

* replaced durationForEntry with duration filter
* fixed duration problem - fixes #137
This commit is contained in:
Kevin Papst
2018-06-02 19:39:03 +02:00
committed by GitHub
parent 1c0f8cdad1
commit 9d9860e495
10 changed files with 20 additions and 35 deletions

View File

@@ -45,7 +45,7 @@
{% if not duration_only %}
<td class="hidden-xs">&dash;</td>
{% endif %}
<td><i>{{ entry.duration|duration }}</i></td>
<td><i>{{ entry|duration }}</i></td>
<td>&dash;</td>
{% endif %}

View File

@@ -19,7 +19,7 @@
</div>
<h4>
{{ entry.activity.name }}
<small><i class="fa fa-clock-o"></i> {{ entry|durationForEntry }}</small>
<small><i class="fa fa-clock-o"></i> {{ entry|duration }}</small>
</h4>
<p>{{ entry.activity.project.name }} ({{ entry.activity.project.customer.name }})</p>
</a>

View File

@@ -45,7 +45,7 @@
{% if not duration_only %}
<td>&dash;</td>
{% endif %}
<td class="hidden-xs"><i>{{ entry.duration|duration }}</i></td>
<td class="hidden-xs"><i>{{ entry|duration }}</i></td>
<td class="hidden-xs">&dash;</td>
{% endif %}