Mercurial > getan > getan
view getan/templates/zeiterfassung @ 368:a91cd3a13637
Left-justify user entry in zeiterfassung to three characters
(basically the same as 22aa74768d97, but with templating)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 03 Mar 2014 15:47:13 +0100 |
parents | f13dc9fd62d5 |
children | f4dcfbede99b |
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 }}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