{% extends "base.html" %} {% load static %} {% block title %}{{ object.name }} - Analytics Reports{% endblock %} {% block content %}

{{ object.name }} {{ object.get_category_display }} Report

Report Information

Edit
Name: {{ object.name }}
Description: {{ object.description|default:"No description" }}
Category: {{ object.get_category_display }}
Type: {{ object.get_type_display }}
Status: {{ object.get_status_display }}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Created By: {{ object.created_by.get_full_name|default:"System" }}
Last Generated: {% if object.last_generated %} {{ object.last_generated|date:"M d, Y H:i" }}
{{ object.last_generated|timesince }} ago {% else %} Never generated {% endif %}
Next Run: {% if object.next_run %} {{ object.next_run|date:"M d, Y H:i" }}
{{ object.next_run|timeuntil }} from now {% else %} Not scheduled {% endif %}
Format: {% for format in object.output_formats.all %} {{ format.name }} {% empty %} No formats specified {% endfor %}
{% if object.configuration %}
Report Configuration
{{ object.configuration_formatted }}
{% endif %} {% if object.sql_query %}
SQL Query
{{ object.sql_query }}
{% endif %}

Recent Executions

{% if recent_executions %}
{% for execution in recent_executions %} {% endfor %}
Execution Time Status Duration Records Size Actions
{{ execution.started_at|date:"M d, Y H:i:s" }} {{ execution.get_status_display }} {{ execution.duration|default:"-" }} {{ execution.record_count|default:"-" }} {{ execution.file_size_formatted|default:"-" }} {% if execution.output_file %} Download {% endif %} {% if execution.status == 'FAILED' %} {% endif %}
{% else %}

No execution history found for this report.

{% endif %}

Quick Actions

Edit Report {% if object.type == 'SCHEDULED' %} {% endif %}
Delete Report

Report Statistics

{{ object.execution_count }}
Total Executions
{{ object.success_rate }}%
Success Rate
{{ object.avg_duration }}
Avg Duration
{{ object.avg_records }}
Avg Records

Schedule Information

{% if object.schedule %} {% if object.schedule.day_of_week %} {% endif %} {% if object.schedule.day_of_month %} {% endif %}
Frequency: {{ object.schedule.get_frequency_display }}
Time: {{ object.schedule.time|time:"H:i" }}
Day of Week: {{ object.schedule.get_day_of_week_display }}
Day of Month: {{ object.schedule.day_of_month }}
Active: {{ object.schedule.is_active|yesno:'Yes,No' }}
{% else %}

No schedule configured.

{% if object.type == 'SCHEDULED' %} {% endif %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}