[Getan-commits] [PATCH 1 of 2] Left-justify user entry in zeiterfassung to three characters

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


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Date 1393858033 -3600
# Node ID a91cd3a13637e9c65a3c3fe777de4510ab894dce
# Parent  ea5a171abda7a63948d821dea2c65447c8f1599f
Left-justify user entry in zeiterfassung to three characters

(basically the same as 22aa74768d97, but with templating)

diff -r ea5a171abda7 -r a91cd3a13637 getan/templates/zeiterfassung
--- a/getan/templates/zeiterfassung	Mon Mar 03 15:31:17 2014 +0100
+++ b/getan/templates/zeiterfassung	Mon Mar 03 15:47:13 2014 +0100
@@ -2,7 +2,7 @@
 {%- 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() }}
+{{ 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 -%}


More information about the Getan-commits mailing list