view getan/templates/zeiterfassung-hierarchy1 @ 568:e7b36e596751 tip

Last week's year is not necessarily today's year
author Tom Gottfried <tom@intevation.de>
date Mon, 03 Jan 2022 11:37:31 +0100
parents 1a179ed1c9d7
children
line wrap: on
line source
{#- using project keys as zeiterfassung's workpackages
-#}
{%- for day, day_entries
     in entries|sort(attribute='startisoday')|groupby('startisoday') -%}
  {%- for project in projects -%}
    {%- for project_id, project_day_entries
        in day_entries|sort(attribute='project_id')|groupby('project_id') %}

      {%- if project_id == project.id -%}
        {%- for entry in project_day_entries -%}
          {{ entry.start|date_format }} {{
            (entry.get_duration()|human_time).rjust(5)
          }}h a {{ user.ljust(3) }} [{{ project.key }}] {{
            entry.get_comment()
          }}{{'\n'}}
        {%- endfor -%}
      {%- endif -%}

    {%- endfor -%}
  {%- endfor -%}
{% endfor -%}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)