{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state, alert %} {% block title %}{{ _('Overdue Tasks') }} - Time Tracker{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Tasks'), 'url': url_for('tasks.list_tasks')}, {'text': _('Overdue Tasks')} ] %} {% set actions %} {{ _('Back to Tasks') }} {% endset %} {{ page_header( 'fas fa-exclamation-triangle', _('Overdue Tasks'), subtitle_text=_('Requires immediate attention') ~ ' • ' ~ (tasks|length) ~ ' ' ~ _('items'), actions_html=actions, breadcrumbs=breadcrumbs ) }} {{ alert(_('There are') ~ ' ' ~ (tasks|length) ~ ' ' ~ _('overdue tasks that require immediate attention. Please review and update these tasks to prevent further delays.'), type='warning', icon='fa-exclamation-triangle') }} {% if tasks %}
{% for task in tasks %}
{{ _('Overdue') }} {% if task.priority_display %} {{ task.priority_display }} {% endif %}

{{ task.name }}

{% if task.description %}

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

{% endif %}
{{ task.project.name }}
{% if task.assigned_user %}{{ task.assigned_user.display_name }}{% else %}{{ _('Unassigned') }}{% endif %}
{{ _('Due:') }} {{ task.due_date|format_date }}
{% if task.estimated_hours %}
{{ _('Est:') }} {{ task.estimated_hours }}h
{% endif %} {% if task.total_hours > 0 %}
{{ _('Actual:') }} {{ task.total_hours }}h
{% endif %}
{% if task.estimated_hours and task.total_hours > 0 %}
{{ _('Progress') }} {{ task.progress_percentage }}%
{% endif %}
{{ _('View') }} {% if current_user.is_admin or task.created_by == current_user.id %} {{ _('Edit') }} {% endif %} {{ _('Timer') }}
{% endfor %}

{{ _('Bulk Actions') }}

{{ _('Update Due Dates') }}

{{ _('Extend due dates for multiple tasks at once') }}

{{ _('Priority Management') }}

{{ _('Adjust priorities for overdue tasks') }}

{% else %} {% set actions %} {{ _('View All Tasks') }} {% endset %} {{ empty_state('fas fa-check-circle', _('No Overdue Tasks!'), _('Great job! All tasks are currently on schedule.'), actions, type='success') }} {% endif %} {% endblock %}