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

{{ source.name }}

{% trans "Edit" %} {% comment %} Generate Keys {% endcomment %} {% trans "Delete" %}
{% trans "Source Information" %}
{{ source.name }}
{{ source.get_source_type_display }}
{% if source.description %}
{{ source.description|linebreaks }}
{% endif %}
{% if source.contact_email %} {{ source.contact_email }} {% else %} {{ _("Not specified") }} {% endif %}
{% if source.contact_phone %} {{ source.contact_phone }} {% else %} {{ _("Not specified") }} {% endif %}
{% if source.is_active %} {{ _("Active") }} {% else %} {{ _("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 }} {{ _("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 "API Credentials" %}
{% trans "Integration Statistics" %}
{{ total_logs }}
{{ successful_logs }}
{{ failed_logs }}
{% if total_logs > 0 %}
{% widthratio successful_logs total_logs 100 %}%
{% endif %}
{% 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 %} {{ _("No data") }} {% endif %}
{% else %}

{{ _("No integration logs found") }}

{% endif %}
{% for log in integration_logs %} {% if log.request_data %}