{% extends "admin/base_site.html" %} {% load i18n %} {% comment %} Dashboard page for django-taskly. Displays aggregated stats cards (auto-refreshed via HTMX every 30 s), a slow-tasks table, and a recent-tasks table. Context variables ----------------- title str — page heading from DASHBOARD_TITLE setting total_tasks int — total snapshot count successful_count int — SUCCESSFUL snapshot count failed_count int — FAILED snapshot count success_rate float — percentage (0.0–100.0) slow_tasks QuerySet — up to 10 slowest TaskSnapshot objects recent_tasks QuerySet — up to 20 recently-updated TaskSnapshot objects {% endcomment %} {% block title %}{{ title }} | {% trans "Django Taskly" %}{% endblock %} {% block content_title %}{% endblock %} {% block extrahead %} {{ block.super }} {# Load HTMX from CDN for partial auto-refresh #} {% endblock %} {% block content %} {# -------------------------------------------------------------------- #} {# Toolbar: Navigation + Refresh + Auto-refresh #} {# -------------------------------------------------------------------- #}
Task List →
{# -------------------------------------------------------------------- #} {# Dashboard content — HTMX swap target #} {# -------------------------------------------------------------------- #}
{% include "django_taskly/partials/dashboard_content.html" %}
{% endblock %}