{% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_list %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block content %}

{% trans "Kong API Gateway Status" %}

{% if is_connected %} {% else %} {% endif %} {% trans "Kong Connection" %}

{% trans "Kong Admin URL:" %} {{ kong_admin_url }}

{% if is_connected %}

{% trans "Successfully connected to Kong API Gateway." %}

{% trans "Gateway Version:" %} {{ kong_version }}

{% trans "Total Services:" %} {{ services_count }}

{% trans "Total Routes:" %} {{ routes_count }}

{% trans "Total Plugins:" %} {{ plugins_count }}

{% else %}

{% trans "Could not connect to Kong API Gateway." %}

{% trans "Error:" %} {{ error_message }}

{% trans "Please check your Kong configuration and make sure the service is running." %}

{% endif %}

{% trans "Synchronization Status" %}

{% trans "Django to Kong synchronization is" %} {% if sync_enabled %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}

{% trans "Unsynchronized Items" %}

{% if unsync_services %}

{% trans "Services without Kong ID:" %} {{ unsync_services|length }}

    {% for service in unsync_services %}
  • {{ service.name }}
  • {% endfor %}
{% else %}

{% trans "All services are synchronized with Kong." %}

{% endif %} {% if unsync_routes %}

{% trans "Routes without Kong ID:" %} {{ unsync_routes|length }}

    {% for route in unsync_routes %}
  • {{ route.name }} ({{ route.service.name }})
  • {% endfor %}
{% else %}

{% trans "All routes are synchronized with Kong." %}

{% endif %}
{% csrf_token %}
{% endblock %}