You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
oauth-account/Resources/views/Profile/oauth_account.html.twig

24 lines
931 B

{# @var resourceOwnerConfig \vierbergenlars\AuthserverOAuthAccountBundle\ResourceOwner\ResourceOwnerConfig #}
{# @var externalUsers \vierbergenlars\AuthserverExternalAccountBundle\Entity\ExternalUser[] #}
<h4>
{% if resourceOwnerConfig.icon %}
{{ icon(resourceOwnerConfig.icon) }}
{% endif %}
{{ resourceOwnerConfig.serviceName }}
</h4>
{% for externalUser in externalUsers %}
Connected to {{ externalUser.providerFriendlyName }}
<a href="{{ url('vierbergenlars_oauth_account_disconnect', {externalUser: externalUser.id}) }}" class="btn btn-link btn-sm">{{ icon('chain-broken') }} Disconnect account</a>
<br>
{% endfor %}
{% set buttonConfig = resourceOwnerConfig.connectButton %}
<a href="{{ hwi_oauth_login_url(resourceOwner) }}"
class="btn btn-{{ buttonConfig.style }}">
{% if buttonConfig.icon %}
{{ icon(buttonConfig.icon) }}
{% endif %}
{{ buttonConfig.label }}
</a>