{% extends 'base.html' %} {% load i18n %} {% block title %} {{ source.name }} | {% trans "Source Details" %} | {% trans "Recruitment System" %} {% endblock %} {% block content %}
{% trans "Source Information" %}
{% trans "Name" %} {{ source.name }}
{% trans "Type" %} {{ source.source_type }}
{% trans "Status" %} {% if source.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% trans "Created By" %} {{ source.created_by }}
{% trans "Created At" %} {{ source.created_at|date:"M d, Y H:i" }}
{% trans "Updated At" %} {{ source.updated_at|date:"M d, Y H:i" }}
{% trans "Description" %}

{{ source.description|default:"-" }}

{% trans "Network Configuration" %}
{% trans "IP Address" %}: {{ source.ip_address|default:"Not specified" }}
{% trans "Trusted IPs" %}:
{% if source.trusted_ips %}
{% for ip in source.trusted_ips|split:"," %} {{ ip|strip }} {% endfor %}
{% else %} Not specified {% endif %}
{% trans "API Configuration" %}
{% trans "Integration Version" %}: {{ source.integration_version|default:"Not specified" }}
{% trans "API Key" %}:
{% trans "API Secret" %}:
{% trans "Recent Integration Logs" %}
{% trans "Back to List" %}
{% if recent_logs %}
{% for log in recent_logs %} {% endfor %}
{% trans "Time" %} {% trans "Action" %} {% trans "Endpoint" %} {% trans "Method" %} {% trans "Status" %}
{{ log.created_at|date:"M d, Y H:i:s" }} {{ log.get_action_display }} {{ log.endpoint }} {{ log.method }} {% if log.success %} Success {% else %} Failed {% endif %}
{% if recent_logs.has_previous %} {% endif %} {% else %}
{% trans "No integration logs found" %}

{% trans "Integration logs will appear here when this source is used for external integrations." %}

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}