view getan/templates/zeiterfassung @ 370:f4dcfbede99b

Move justification of human_time to templates (only for zeiterfassung) The totals are often longer 100h and more, so if justification is desired here, it would not be to two full hour digits anyway.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 03 Mar 2014 15:57:54 +0100
parents a91cd3a13637
children 0ad470c4bf17
line wrap: on
line source
{% for proj in projects %}
{%- if proj.entries %}
# project: {{ proj.key }} ({{ proj.desc }})
{% for entry in proj.entries -%}
{{ entry.start|date_format}} {{ (entry.get_duration()|human_time).rjust(5) }}h ? {{ user.ljust(3) }} [{{ entry.get_workpackage() }}] {{ entry.get_comment() }}
{% endfor -%}
# total: {{ proj.get_total_duration()|human_time }}h
{% endif -%}
{% endfor %}
# total all projects: {{ total_time|human_time }}h
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)