{% 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 %} {{ name|capitalize }} {% else %} {{ 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 %}