Archived
1
0
Fork 0

app/views/user/settings.volt: link to the right place for oauth connect.

This commit is contained in:
Henrik Hautakoski 2018-06-10 20:54:35 +02:00
parent adb98241c7
commit 95190aa7ab

View file

@ -49,16 +49,16 @@
{% if user.getGithubId() > 0 %}
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'github']) }}">Disconnect</a>
{% else %}
<a href="{{ url(['for': 'oauth-connect', 'provider': 'github']) }}">Connect</a>
<a href="{{ url(['for': 'oauth', 'strategy': 'github']) }}">Connect</a>
{% endif %}
</div>
<div class="col-sm-2 text-center">
<div class="text-gitlab">{{ icon('brand/gitlab', [ '3x' ]) }}</div>
{% if user.getGitlabId() > 0 %}
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'gitlab', 'mode': 'unlink' ]) }}">Disconnect</a>
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'gitlab' ]) }}">Disconnect</a>
{% else %}
<a href="{{ url(['for': 'oauth-connect', 'provider': 'gitlab']) }}">Connect</a>
<a href="{{ url(['for': 'oauth', 'strategy': 'gitlab']) }}">Connect</a>
{% endif %}
</div>
@ -67,7 +67,7 @@
{% if user.getGoogleId() > 0 %}
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'google']) }}">Connect</a>
{% else %}
<a href="{{url(['for': 'oauth-connect', 'provider': 'google']) }}">Connect</a>
<a href="{{url(['for': 'oauth', 'strategy': 'google']) }}">Connect</a>
{% endif %}
</div>