{% extends "madga/studio/base.html" %} {% load i18n humanize madga_studio_tags %} {% block breadcrumbs %}{% trans "Channels" %}{% endblock %} {% block content %}

{% trans "Channels" %}

{% trans "Syndicate your posts to the platforms where readers already are. Edit the connection per account." %}

{% trans "Connected accounts" %}
{{ connected_count }}
{% blocktrans count n=supported_count %}of {{ n }} supported{% plural %}of {{ n }} supported{% endblocktrans %}
{% trans "Broadcasts this week" %}
{{ broadcasts_7d }}
{% trans "Total reach" %}
{{ total_reach|intcomma }}
{% trans "across active channels" %}
{% trans "In queue" %}
{{ in_queue }}

{% trans "Connected accounts" %}

{% for p in publishers %} {% with accts=accounts_by_key|get_item:p.key %}
{% if p.icon %}{% studio_icon p.icon size=16 stroke=2 %}{% else %}{% studio_icon "send" size=16 stroke=2 %}{% endif %}
{{ p.label }}
{% if p.description %}
{{ p.description }}
{% endif %}
{% if accts %} {% for a in accts %}
{{ a.handle|default:a.display_name|default:"—" }} {% if a.is_active %} {% studio_badge "published" _("Active") %} {% else %} {% studio_badge "archived" _("Paused") %} {% endif %}
{% if a.last_used_at %}{% blocktrans with when=a.last_used_at|naturaltime %}Last posted {{ when }}{% endblocktrans %}{% else %}{% trans "Never used" %}{% endif %} {% if a.audience_size %} · {{ a.audience_size|intcomma }} {% trans "followers" %}{% endif %}
{% if a.last_error %}
⚠ {{ a.last_error|truncatechars:140 }}
{% endif %}
{% csrf_token %}
{% csrf_token %}
{% trans "Edit" %}
{% csrf_token %}
{% endfor %} {% studio_icon "plus" size=12 stroke=2.5 %} {% trans "Add another account" %} {% else %} {% if p.key in needs_oauth_config %}
{% trans "Needs setup" %} {% blocktrans with key=p.key %}Add MADGA_OAUTH['{{ key }}'] client_id/client_secret to your project settings.{% endblocktrans %}
{% else %} {% studio_icon "plus" size=12 stroke=2.5 %} {% trans "Connect" %} {% endif %} {% if p.char_limit %}
{% blocktrans with n=p.char_limit %}{{ n }} char limit per post{% endblocktrans %}
{% endif %} {% endif %}
{% endwith %} {% empty %} {% studio_empty title=_("No channel publishers registered") message=_("Channel publishers ship with MADGA — install from PyPI or register your own.") %} {% endfor %}
{% endblock %}