{% extends "includes/crud/table_list.html" %} {% load has_github_app_account from readthedocs.socialaccounts %} {% load blocktrans trans from i18n %} {% load can_be_disconnected from readthedocs.socialaccounts %} {% load get_account_username from ext_theme_tags %} {% block top_menu %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {{ block.super }} {% endblock top_menu %} {% block top_left_menu_items %} {% endblock top_left_menu_items %} {% block create_button %}
{% trans "Add new connection" %}
{% endblock create_button %} {% block list_placeholder_icon_class %} fa-duotone fa-user-unlock {% endblock list_placeholder_icon_class %} {% block list_placeholder_header %} {% blocktrans trimmed %} Your account is not connected to any services. {% endblocktrans %}
{% blocktrans trimmed %} Add a new connection to to enable automatic import and configuration of new projects. {% endblocktrans %}
{% endblock list_placeholder_header %} {% block list_placeholder_text %} {% trans "Learn more" %} {% endblock list_placeholder_text %} {% block list_item_right_menu %} {% if object.get_provider.id == "github" %}
{% if object|has_github_app_account %} {% trans "Migrate" %} {% else %} {% trans "Migrate" %} {% endif %}
{% endif %}
{% if object.get_provider.id == "githubapp" %} {% endif %}
{% csrf_token %}
{% endblock list_item_right_menu %} {% block list_item_image %} {% with avatar_url=object.get_avatar_url %} {% if avatar_url %} {% trans {% else %}
{% endif %} {% endwith %} {% endblock list_item_image %} {% block list_item_header %} {{ object|get_account_username }}
{% blocktrans with time_since=object.last_login|timesince trimmed %} Logged in {{ time_since }} ago {% endblocktrans %}
{% endblock list_item_header %} {% block list_item_meta_items %} {% with provider=object.get_provider %} {% if provider.app.pk and provider.id == "saml" %} {% trans "SAML" %} {% else %} {# Provider is not a database provider #} {{ provider.app.name|default:provider.name }} {% endif %} {% endwith %} {% endblock list_item_meta_items %} {% block list_item_extra %} {% endblock list_item_extra %}