{% extends "base.html" %} {% from "components/ui.html" import ago, card, credentials, empty, filter_bar, link_button, pager with context %} {% block title %}Accounts · {{ APP_NAME }}{% endblock %} {% block heading %}Accounts{% endblock %} {% block subheading %}
The mailboxes this service connects
{% endblock %} {% block actions %} {% if can_create %}{{ link_button("/ui/accounts/new", "Connect an account", "plus-lg", cls="primary") }}{% endif %} {% endblock %} {% block content %} {% call card("Accounts", meta=none if pages[0] or pages[1] else accounts | length, tight=True) %}
{{ filter_bar(bar, problem) }}
{% if accounts %}
{% for account in accounts %} {% set health = healths.get(account.id) %} {% endfor %}
AddressProviderStatusLast syncCredentialsActions
{{ account.email }} {% if account.display_name %}{{ account.display_name }}{% endif %} {{ account.provider.value }}{% if health and health.watching %}push{% endif %} {% include "partials/account_status.html" %} {% if health is none %}—{% elif not health.synced %}not synced{% else %}{{ ago(health.sync.last_sync_at) }}{% endif %}{% if health and health.problem %}cannot be used {{ health.problem }}{% endif %}{% if health and health.sync.last_error %}sync failed {{ health.sync.last_error }}{% endif %} {{ credentials(account.credentials) }} {% if account.id in auditable %}{{ link_button("/ui/sends?account=" ~ account.id, "Sends", "send", alone=True, word=True, name="Sends of " ~ account.email) }}{% endif %} {% if account.id in readable %}{{ link_button("/ui/accounts/" ~ account.id ~ "/mail", "Mail", "envelope", alone=True, name="Mail of " ~ account.email) }}{% endif %}
{% else %} {{ empty("No account matches." if bar.chips else "No account yet, or none you may see.") }} {% endif %} {{ pager(pages, back="First", on="Next") }} {% endcall %} {% endblock %}