{% extends 'pages/settings/settings.twig' %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('settings.oauth') }}{% endblock %} {% block container_title %}

{{ block('title') }}

{% endblock %} {% block row_content %} {% for name,config in providers %} {% endfor %}
{% if config.url|default %} {{ __(config.name|default(name|capitalize)) }} {% else %} {{ __(config.name|default(name|capitalize)) }} {% endif %} {% if not user.oauth.contains('provider', name) %}
{{ csrf() }} {{ f.submit(__('form.connect')) }}
{% else %}
{{ csrf() }} {{ f.submit(__('form.disconnect'), {'btn_type': 'danger'}) }}
{% endif %}
{% endblock %}