changeset 393:f155d93088a2

New template for zeiterfassung.py.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 17 Feb 2015 17:48:29 +0100
parents 617ced8c7a40
children ac33c24807c5
files getan/templates/zeiterfassung2
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/getan/templates/zeiterfassung2	Tue Feb 17 17:48:29 2015 +0100
@@ -0,0 +1,16 @@
+{% for proj in projects %}
+{%- if proj.entries %}
+# project: {{ proj.key }} ({{ proj.desc }})
+{% for grouper, gentries in proj.entries|sort(attribute='start')|groupby('start.day') %}
+{#- grouper will contain the selected groupby attribute -#}
+
+{% for ggrouper, ggentries in gentries|groupby('workpackage') -%}
+{{ gentries[0].start|date_format }} {{ (ggentries|duration|human_time).rjust(5) }}h a {{ user.ljust(3) }} [{{ ggrouper }}] {% for entry in ggentries %}{{ entry.get_comment() -}}; {% endfor %}
+{% endfor -%}
+# daily sum: {{ gentries|duration|human_time }}h
+
+{% endfor -%}
+# total: {{ entries|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)