{% extends "madga/studio/base.html" %} {% load i18n madga_studio_tags %} {% block breadcrumbs %} {% trans "Channels" %} / {{ publisher.label }} {% endblock %} {% block content %}
{% if publisher.icon %}{% studio_icon publisher.icon size=20 stroke=2 %}{% else %}{% studio_icon "send" size=20 stroke=2 %}{% endif %}

{% blocktrans with label=publisher.label %}Connect {{ label }}{% endblocktrans %}

{% if publisher.description %}

{{ publisher.description }}

{% endif %}
{% csrf_token %} {% comment %} Some publishers (e.g. Bluesky) declare a credential field literally called "handle" since it doubles as their auth identity. Skip the generic studio handle in that case — we'll use the credential value as the display label after save. {% endcomment %} {% if not publisher.has_handle_credential %}
{% endif %} {% for f in publisher.credential_fields %}
{% if f.help_text %}{{ f.help_text }}{% endif %}
{% endfor %}
{% trans "Cancel" %}

{% trans "Heads up:" %} {% blocktrans %}Credentials are encrypted at rest with Fernet (key from MADGA_CREDENTIAL_KEY). Real OAuth flows land in 0.3.5 — for now this stores the token; the host project or future MADGA version handles the actual API call.{% endblocktrans %}

{% endblock %}