{{ _("Reportes SquidStats") }}

{{ _("Fecha del reporte:") }} {{ selected_date.isoformat() }} {{ _("- Generado:") }} {{ generated_at }}

{{ _("Resumen General") }}

{{ _("Total usuarios:") }} {{ metrics.total_stats.total_users | default(0) }}

{{ _("Total solicitudes:") }} {{ metrics.total_stats.total_requests | default(0) }}

{{ _("Datos consumidos (MB):") }} {{ ((metrics.total_stats.total_data_transmitted | default(0)) / 1048576) | round(2) }}

{{ _("Top usuarios por actividad") }}

{% for item in metrics.top_users_by_activity %} {% endfor %}
{{ _("Usuario") }}{{ _("Visitas") }}
{{ item.username }} {{ item.total_visits }}

{{ _("Top URLs por consumo de datos") }}

{% for item in metrics.top_pages_by_data %} {% endfor %}
{{ _("URL") }}{{ _("Datos (MB)") }}
{{ item.url }} {{ ((item.total_data_bytes | default(0)) / 1048576) | round(2) }}

{{ _("Distribución de códigos HTTP") }}

{% for code in metrics.http_response_distribution_chart.labels %} {% endfor %}
{{ _("Código") }}{{ _("Conteo") }}
{{ code }} {{ metrics.http_response_distribution_chart.data[loop.index0] }}