{% extends "base.html" %} {% load static i18n %} {% block title %}{{ source.name }} - {% trans "Source Details" %}{% endblock %} {% block content %}

{{ source.name }}

{% trans "View and manage integration source details" %}

{% trans "Edit" %} {% trans "Delete" %}

{% trans "Source Information" %}

{% trans "Basic integration details" %}

{{ source.name }}
{{ source.get_source_type_display }}
{% if source.description %}
{{ source.description|linebreaks }}
{% endif %}
{% if source.contact_email %} {{ source.contact_email }} {% else %} {% trans "Not specified" %} {% endif %}
{% if source.contact_phone %} {{ source.contact_phone }} {% else %} {% trans "Not specified" %} {% endif %}
{% if source.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% if source.requires_auth %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %}
{% if source.webhook_url %}
{{ source.webhook_url }}
{% endif %} {% if source.api_timeout %}
{{ source.api_timeout }} {% trans "seconds" %}
{% endif %} {% if source.notes %}
{{ source.notes|linebreaks }}
{% endif %}
{{ source.created_at|date:"M d, Y H:i" }}
{{ source.updated_at|date:"M d, Y H:i" }}

{% trans "Recent Integration Logs" %}

{% trans "Last 10 logs" %}

{% if integration_logs %}
{% for log in integration_logs %} {% endfor %}
{% trans "Timestamp" %} {% trans "Method" %} {% trans "Status" %} {% trans "Response Time" %} {% trans "Details" %}
{{ log.created_at|date:"M d, Y H:i:s" }} {{ log.method }} {% if log.status_code >= 200 and log.status_code < 300 %} {{ log.status_code }} {% elif log.status_code >= 400 %} {{ log.status_code }} {% else %} {{ log.status_code }} {% endif %} {% if log.response_time_ms %} {{ log.response_time_ms }}ms {% else %} - {% endif %} {% if log.request_data %} {% else %} {% trans "No data" %} {% endif %}
{% else %}

{% trans "No integration logs found" %}

{% trans "There are no logs recorded for this source yet." %}

{% endif %}

{% trans "API Credentials" %}

{% trans "API access keys" %}

{% trans "Integration Statistics" %}

{% trans "API call metrics" %}

{{ total_logs }}
{{ successful_logs }}
{{ failed_logs }}
{% if total_logs > 0 %}
{% widthratio successful_logs total_logs 100 %}%
{% endif %}
{% for log in integration_logs %} {% if log.request_data %} {% endif %} {% endfor %} {% endblock %} {% block customJS %} {% endblock %}