[Getan-commits] [PATCH 12 of 16] Add a template for generating the zeiterfassung data

Wald Commits scm-commit at wald.intevation.org
Mon Mar 3 15:00:43 CET 2014


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1393853485 -3600
# Node ID f13dc9fd62d5caa911b58c640c868c5ec0092d93
# Parent  45d97d47a9fe1fe6f9fdcb4e2f73b0cd854ddfa7
Add a template for generating the zeiterfassung data

diff -r 45d97d47a9fe -r f13dc9fd62d5 getan/templates/zeiterfassung
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/getan/templates/zeiterfassung	Mon Mar 03 14:31:25 2014 +0100
@@ -0,0 +1,10 @@
+{% 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 }} [{{ 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


More information about the Getan-commits mailing list