{% extends "projects/integration_list.html" %} {% load i18n %} {% block project_edit_content_subheader %} {% endblock project_edit_content_subheader %} {% block project_edit_content %} {% if integration.has_sync %} {% if integration.can_sync %}

{% blocktrans trimmed %} This integration is being managed automatically by Read the Docs. If it isn't functioning correctly, try re-syncing the webhook. {% endblocktrans %}

{% else %} {% comment %} Display information for manual webhook set up if either case is true: * Integration doesn't have the ability to sync * Integration has ability to sync, but we don't have the data returned from the provider API on webhook creation (or webhook was automatically created on new data from an old webhook) {% endcomment %}

{% blocktrans trimmed %} This integration is not managed by Read the Docs currently. If this integration is not functioning correctly, you can try re-syncing it. Otherwise you'll need to update the configuration on your repository. {% endblocktrans %}

{% endif %} {% endif %}

{% blocktrans trimmed %} To manually configure this webhook with your provider, use the following information: {% endblocktrans %}

{% trans "Webhook URL" %}
{% url 'api_webhook' project_slug=project.slug integration_pk=integration.pk as webhook_url %} {% with PUBLIC_API_URL|add:webhook_url as integration_url %}
{% endwith %}
{% if not integration.has_sync %} {# For generic webhooks #}
{% trans "Secret" %}
{% elif integration.secret %}
{% trans "Secret" %}
{% endif %}
{% if integration.has_sync and not integration.secret %}
{% blocktrans trimmed %} This integration does not have a secret, the authenticity of the incoming webhook cannot be verified. Click on "Resync webhook" to generate a secret. Read more in our blog post. {% endblocktrans %}
{% endif %} {% if not integration.can_sync %}

{% blocktrans trimmed %} For more information on manually configuring a webhook, refer to our webhook documentation. {% endblocktrans %}

{% endif %} {% if integration.has_sync %}
{% csrf_token %}
{% endif %}

{% trans "Recent Activity" %}

{% for exchange in integration.exchanges.all %} {% empty %}
{% trans "There is no recent activity" %}
{% endfor %}
{% endblock project_edit_content %}