{% extends "admin/base.html" %} {% block content %}

{{ _("Dashboard - Resumen del Sistema") }}

{{ _("Total ACLs") }}

{% if status.errors %} {% set ns = namespace(shown=False) %}
{% for e in status.errors %} {% if 'ACL' in e or 'acl' in e %}
{{ e }}
{% set ns.shown = True %} {% endif %} {% endfor %} {% if not ns.shown %}
{{ status.errors[0] }}
{% endif %}
{% else %}

{{ stats.total_acls }}

{% endif %}

{{ _("Delay Pools") }}

{% if status.errors %} {% set ns2 = namespace(shown=False) %}
{% for e in status.errors %} {% if 'squid.conf' in e or 'Configuration file' in e or 'read permission' in e or 'write permission' in e or 'read permissions' in e or 'write permissions' in e %}
{{ e }}
{% set ns2.shown = True %} {% endif %} {% endfor %} {% if not ns2.shown %}
{{ status.errors[0] }}
{% endif %}
{% else %}

{{ stats.total_delay_pools }}

{% endif %}

{{ _("Reglas HTTP") }}

{% if status.errors %} {% set ns3 = namespace(shown=False) %}
{% for e in status.errors %} {% if 'squid.conf' in e or 'Configuration file' in e or 'read permission' in e or 'write permission' in e or 'not a regular file' in e or 'Expected file named' in e %}
{{ e }}
{% set ns3.shown = True %} {% endif %} {% endfor %} {% if not ns3.shown %}
{{ status.errors[0] }}
{% endif %}
{% else %}

{{ stats.total_http_rules }}

{% endif %}
{% if ssl_bump.enabled %}
{% else %}
{% endif %}

{{ _("SSL Bump") }}

{% if ssl_bump.enabled %}

{{ _("Activo") }}

{% if ssl_bump.mode %}

{{ ssl_bump.mode }}

{% endif %} {% else %}

{{ _("Inactivo") }}

{% endif %}
{% if not status.errors and stats.total_acls == 0 and stats.total_delay_pools == 0 and stats.total_http_rules == 0 %}

{{ _("No se encontraron configuraciones") }}

{{ _("No se han detectado ACLs, reglas HTTP ni delay pools en tu configuración de Squid.") }}

{{ _("¿Tu configuración ya está dividida en módulos?") }}

{{ _("Si ya tienes tu configuración organizada en archivos separados (por ejemplo: acls.conf, http_access.conf, delay_pools.conf), SquidStats puede leerla directamente sin necesidad de unificarla.") }}

{% endif %}

{{ _("Acciones Rápidas") }}

{% if status.errors %}

{{ _("Editar Configuración") }}

{{ _("Modificar archivo squid.conf (deshabilitado)") }}

{{ _("Agregar ACL") }}

{{ _("Crear nueva regla de acceso (deshabilitado)") }}

{% else %}

{{ _("Editar Configuración") }}

{{ _("Modificar archivo squid.conf") }}

{{ _("Agregar ACL") }}

{{ _("Crear nueva regla de acceso") }}

{% endif %}

{{ _("Ver Logs") }}

{{ _("Revisar logs del sistema") }}

{{ _("Reiniciar Squid") }}

{{ _("Reiniciar el servicio") }}

{{ _("Estado del Sistema") }}

{{ _("Servicio Squid") }}
{{ _("Activo") }}
{{ _("Configuración") }}
{% if status.errors %} {{ _("No cargada") }} {% else %} {{ _("Cargada") }} {% endif %}
{{ _("SSL Bump (MITM)") }}
{% if ssl_bump.enabled %} {{ _("Activo") }} {% if ssl_bump.mode %} {{ ssl_bump.mode }} {% endif %} {% if ssl_bump.cert %}
{{ _("cert:") }} {{ ssl_bump.cert }} {% endif %} {% else %} {{ _("Inactivo") }} {% endif %}
{% endblock %}