{% extends "base.html" %} {% set daily = daily | default(false) %} {% set projects = projects | default(false) %} {% set active_page = 'projects' if projects else 'daily' if daily else 'tasks' %} {% if projects %} {% set history_title = t(text.ALL_TIME_PROJECT_TASKS_TITLE, project=report.repository.rsplit('/', 1)[-1]) if report.repository else t(text.PROJECTS) %} {% elif report %} {% set first_date = report.start | history_date %} {% set date_label = first_date if report.start == report.end else t(text.TASK_DATE_RANGE, start=first_date, end=report.end | history_date) %} {% if report.repository and not daily %} {% set history_title = t(text.PROJECT_TASKS_TITLE, project=report.repository.rsplit('/', 1)[-1], date=date_label) %} {% else %} {% set history_title = t(text.DAILY_TASKS_TITLE if daily else text.DATED_TASKS_TITLE, date=date_label) %} {% endif %} {% endif %} {% macro total_duration(hours) -%} {%- set seconds = hours | elapsed_seconds -%} {{- '%02d:%02d' | format(seconds // 3600, seconds // 60 % 60) -}} {%- endmacro %} {% block page_title %}{{ history_title if report else t(text.TASKS) }}{% endblock %} {% block head %} {% if task and task.editor %} {% endif %} {% endblock %} {% block content %} {% if saved %}
{{ t(text.TIMING_SAVED if saved == 'timing' else text.PAUSE_SAVED) }}
{% endif %} {% if form_error is defined %}{{ t(form_error) }}
{% endif %}{{ task.repository }}
{{ t(text.TIMING_CLEAN) }}
{{ t(text.TIMING_RELOAD) }}{{ t(text.TIMING_NO_SCRIPT) }}
{{ t(text.TIME_FORMAT, timezone=task.timezone) }}
{% endif %}→
{{ t(text.ELAPSED_TIME, elapsed=interval.elapsed_time) }}
{% if interval.interval_id and interval.ended_at and task.status != 'completed' %} {% set editing = form_values is defined and form_values.get('interval_id') == interval.interval_id | string %}{{ t(text.OPEN_INTERVAL) }}
{% endif %}{{ t(text.NO_PROJECT_TASKS if projects else text.NO_TASKS) }}
{% endif %}| {{ t(text.TASK_NUMBER) }} | {% if daily %}{{ t(text.TASK_PROJECT) }} | {% endif %}{{ t(text.TASK_START_TIME) }} | {{ t(text.TASK_DESCRIPTION) }} | {{ t(text.TASK_DURATION) }} |
|---|---|---|---|---|
| {% if daily %} | {{ item.repository.rsplit('/', 1)[-1] }} | {% endif %}{{ t(text.RELEASE_NAMED, tag=item.tag_name, codename=item.codename) if item.codename else t(text.RELEASE, tag=item.tag_name) }} | ||
| {{ item.task_id }} | {% if daily %}{{ item.repository.rsplit('/', 1)[-1] }} | {% endif %}{{ item.commit_message or t(text['STATUS_' ~ item.status.upper()]) }} | {{ '%02d:%02d' | format(minutes // 60, minutes % 60) }} |