app/views/user/settings.volt: link to the right place for oauth connect.
This commit is contained in:
parent
adb98241c7
commit
95190aa7ab
1 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Reference in a new issue