{% extends "base.html" %} {% from "components/ui.html" import confirm_dialog %} {% block content %}

{{ task.name }}

Task details and history.

{% if current_user.is_admin or task.created_by == current_user.id %}
{{ _('Edit Task') }} {% if task.status in ['todo','review'] %}
{% elif task.status == 'in_progress' %}
{% elif task.status == 'done' %}
{% endif %}
{% endif %}
{% if task.description %}

Description

{{ task.description | markdown | safe }}
{% endif %}

Time Entries

{% for entry in time_entries %} {% else %} {% endfor %}
Date Duration User Notes Actions
{{ entry.start_time|user_date('%Y-%m-%d') }} {{ entry.duration_formatted }} {{ entry.user.display_name }} {% if entry.notes %}{{ entry.notes[:40] }}{% if entry.notes|length > 40 %}...{% endif %}{% else %}-{% endif %}
{% if current_user.is_admin or entry.user_id == current_user.id %} {% endif %}
No time has been logged for this task.

Details

Status

{{ task.status_display }}

Priority

{{ task.priority_display }}

Project

{{ task.project.name }} {% if task.project.code_display %} {{ task.project.code_display }} {% endif %}

{% if task.assigned_user %}

Assigned To

{{ task.assigned_user.display_name }}

{% endif %} {% if task.due_date %}

Due Date

{{ task.due_date.strftime('%Y-%m-%d') }}

{% endif %}
{% if current_user.is_admin or task.created_by == current_user.id %} {{ confirm_dialog( 'confirmDeleteTask-' ~ task.id, 'Delete Task', 'Are you sure you want to delete this task? This action cannot be undone.', 'Delete', 'Cancel', 'danger' ) }} {% endif %} {% for entry in time_entries %} {% if current_user.is_admin or entry.user_id == current_user.id %} {{ confirm_dialog( 'confirmDeleteEntry-' ~ entry.id, 'Delete Time Entry', 'Are you sure you want to delete this time entry? This action cannot be undone.', 'Delete', 'Cancel', 'danger' ) }} {% endif %} {% endfor %} {% endblock %}