Mercurial > getan > getan
view getan/templates/wochenbericht @ 377:0ad470c4bf17
Sort entries in wochenbericht and zeiterfassung templates by startdate
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 11 Mar 2014 16:18:28 +0100 |
parents | 87cb6c55de1c |
children | 58537062fe74 |
line wrap: on
line source
{{ user }}, (KW {{ week }}, {{ year }}) {% for i in user -%} = {%- endfor -%} =============== {% for proj in projects %} # {{ proj.desc }} {% for entry in proj.entries|sort(attribute='start') -%} {{ entry.get_comment() }} {% endfor -%} # total time: {{ proj.get_total_duration()|human_time }}h {% endfor %} # total: {{ total_time|human_time }}h