{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state %} {% block title %}{{ _('Integrations') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Integrations'} ] %} {{ page_header( icon_class='fas fa-plug', title_text='Integrations', subtitle_text='Connect with third-party services', breadcrumbs=breadcrumbs ) }}
{% for provider in available_providers %} {% set existing_integration = integrations|selectattr('provider', 'equalto', provider.provider)|first if integrations else none %}

{{ provider.display_name }}

{% if provider.description %}

{{ provider.description }}

{% endif %}
{% if existing_integration %} {% if existing_integration.is_active %} {{ _('View Integration') }} {% else %} {% if provider.provider == 'trello' %} {{ _('Configure') }} {% else %} {{ _('Reconnect') }} {% endif %} {% endif %} {% else %} {% if provider.provider == 'trello' %} {{ _('Setup') }} {% elif provider.provider == 'google_calendar' %} {{ _('Connect Google Calendar') }}
{{ _('Automatically redirects to Google') }}
{% elif provider.provider == 'caldav_calendar' %} {{ _('Setup CalDAV Calendar') }}
{{ _('Connect to Zimbra or other CalDAV server') }}
{% else %} {{ _('Connect') }} {% endif %} {% endif %}
{% endfor %}
{% if integrations %}

{{ _('Your Integrations') }}

{% for integration in integrations %}

{{ integration.name }}

{{ integration.provider|title|replace('_', ' ') }} {% if integration.is_global %} {{ _('Global') }} {% endif %} {% if integration.last_sync_at %} • {{ _('Last synced') }}: {{ integration.last_sync_at.strftime('%Y-%m-%d %H:%M') }} {% endif %}

{% if integration.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %}
{% endfor %}
{% endif %} {% endblock %}