{% extends "base.html" %} {% block title %}{{ _('My Tasks') }} - Time Tracker{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{% from "_components.html" import page_header %}
{% set actions %} {{ _('New Task') }} {% endset %} {{ page_header('fas fa-user', _('My Tasks'), _('Tasks assigned to or created by you') ~ ' • ' ~ (tasks|length) ~ ' ' ~ _('total'), actions) }}
{{ _('To Do') }}
{{ tasks|selectattr('status', 'equalto', 'todo')|list|length }}
{{ _('In Progress') }}
{{ tasks|selectattr('status', 'equalto', 'in_progress')|list|length }}
{{ _('Review') }}
{{ tasks|selectattr('status', 'equalto', 'review')|list|length }}
{{ _('Completed') }}
{{ tasks|selectattr('status', 'equalto', 'done')|list|length }}
{{ _('Filter My Tasks') }}
{{ _('Clear') }}
{% if tasks %}
{% for task in tasks %}
{{ task.status_display }} {{ task.priority_display }}
{{ task.name }}
{% if task.description %}

{{ task.description[:120] }}{% if task.description|length > 120 %}...{% endif %}

{% endif %}
{{ task.project.name }}
{% if task.assigned_user %}
{{ task.assigned_user.display_name }}
{% endif %} {% if task.due_date %}
Due: {{ task.due_date.strftime('%b %d, %Y') }} {% if task.is_overdue %}{% endif %}
{% endif %} {% if task.estimated_hours %}
Est: {{ task.estimated_hours }}h
{% endif %} {% if task.total_hours > 0 %}
Actual: {{ task.total_hours }}h
{% endif %}
{% if task.assigned_to == current_user.id %} Assigned to me {% else %} {{ _('Created by me') }} {% endif %}
{% if task.estimated_hours and task.total_hours > 0 %}
{{ _('Progress') }} {{ task.progress_percentage }}%
{% endif %}
{% endfor %}
{% if pagination.pages > 1 %} {% endif %} {% else %}

{{ _('No tasks found') }}

{{ _("You don't have any tasks assigned to you or created by you yet.") }}

{% endif %}
{% endblock %}