Merge branch '15-settings-oauth-connect-disconnect'
This commit is contained in:
commit
313ba55098
6 changed files with 175 additions and 11 deletions
|
|
@ -37,9 +37,50 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
|
||||
<h4>Social sign-in</h4>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="col-sm-2 text-center">
|
||||
<div>{{ icon('brand/github', [ '3x' ]) }}</div>
|
||||
{% if user.getGithubId() > 0 %}
|
||||
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'github']) }}">Disconnect</a>
|
||||
{% else %}
|
||||
<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' ]) }}">Disconnect</a>
|
||||
{% else %}
|
||||
<a href="{{ url(['for': 'oauth', 'strategy': 'gitlab']) }}">Connect</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-2 text-center">
|
||||
<div class="text-google">{{ icon('brand/google', [ '3x' ]) }}</div>
|
||||
{% if user.getGoogleId() > 0 %}
|
||||
<a href="{{ url(['for': 'oauth-disconnect', 'provider': 'google']) }}">Connect</a>
|
||||
{% else %}
|
||||
<a href="{{url(['for': 'oauth', 'strategy': 'google']) }}">Connect</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<hr />
|
||||
{{ form.render('Save') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue