{% extends "base.html" %} {% block title %}Aplicaciones - Administración{% endblock %} {% block header_title %}Gestión de Aplicaciones{% endblock %} {% block content %}

{{ applications.total }}

Total Aplicaciones

{{ applications.items|selectattr('is_active')|list|length }}

Activas

{{ applications.items|selectattr('is_private')|list|length }}

Privadas

{{ categories|length }}

Categorías

Lista de Aplicaciones
{% if applications.items %}
{% for app in applications.items %} {% endfor %}
Aplicación Categoría Acceso Privacidad Estadísticas Estado Acciones
{% if app.icon_filename %} {{ app.name }} {% else %}
{% endif %}
{{ app.name }}
{{ app.description[:50] if app.description else 'Sin descripción' }}...
{% if app.category %} {{ app.category.name }} {% else %} Sin categoría {% endif %} {{ app.full_url }}
{{ 'Privada' if app.is_private else 'Pública' }} {% if app.is_private %} {% if app.allowed_departments %} {{ app.get_allowed_departments_list()|length }} depts {% endif %} {% if app.permissions.count() > 0 %} {{ app.permissions.count() }} permisos {% endif %} {% endif %}
{{ app.access_count }} accesos {% if app.last_accessed %} {{ app.last_accessed.strftime('%d/%m/%Y') }} {% endif %}
{{ 'Activa' if app.is_active else 'Inactiva' }}
{% if app.is_private %} {% endif %}
{% for app in applications.items %}
{% if app.icon_filename %} {{ app.name }} {% else %} {% endif %}
{{ 'Activa' if app.is_active else 'Inactiva' }}
{{ app.name }}

{{ app.description[:80] if app.description else 'Sin descripción' }} {% if app.description and app.description|length > 80 %}...{% endif %}

{{ app.ip_address }} {% if app.port and app.port not in [80, 443] %}:{{ app.port }}{% endif %} {% if app.category %} {{ app.category.name }} {% endif %}
{{ app.access_count }} accesos
{% if app.is_private %} {% endif %}
{% endfor %}
{% if applications.pages > 1 %}
{% endif %} {% else %}
No hay aplicaciones

{% if search_query or selected_category %} No se encontraron aplicaciones con los filtros aplicados. {% else %} Aún no hay aplicaciones registradas en el sistema. {% endif %}

Crear Primera Aplicación
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}