mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
54186d9db1
Add linked accounts section to user settings page GitOrigin-RevId: d2bb26a3bfb3946144a05b98f58d50a2c57f3040
35 lines
No EOL
1.3 KiB
Text
35 lines
No EOL
1.3 KiB
Text
form.row(
|
|
ng-controller="UserOauthController"
|
|
name="oauthForm"
|
|
ng-cloak
|
|
)
|
|
.col-xs-12
|
|
h3.text-capitalize #{translate("linked_accounts")}
|
|
p.small #{translate("linked_accounts_explained", {appName:'{{settings.appName}}'})}
|
|
|
|
div.text-center(ng-if="ui.isLoadingProviders")
|
|
i.fa.fa-fw.fa-spin.fa-refresh(aria-hidden="true")
|
|
| #{translate("loading")}...
|
|
|
|
ul(
|
|
class="list-like-table"
|
|
ng-if="ui.isLoadingProviders == false && ui.hasError == false"
|
|
)
|
|
li(ng-repeat="provider in providers")
|
|
.row
|
|
.col-xs-12.col-sm-8.col-md-10
|
|
h4 {{provider.name}}
|
|
p.small(ng-if="provider.key != 'orcid'")
|
|
| #{translate("login_with_service", {service:'{{provider.name}}'})}
|
|
p.small(ng-if="provider.key == 'orcid'")
|
|
| !{translate('oauth_orcid_description', {link: '/blog/434'})}
|
|
.col-xs-2.col-sm-4.col-md-2.text-right
|
|
button.btn.btn-default(ng-if="userProviders[provider.key]") #{translate("unlink")}
|
|
button.btn.btn-primary(ng-if="!userProviders[provider.key]") #{translate("link")}
|
|
|
|
.alert.alert-danger(
|
|
ng-if="ui.hasError"
|
|
)
|
|
i.fa.fa-fw.fa-exclamation-triangle(aria-hidden="true")
|
|
span(ng-if="!ui.errorMessage") #{translate("error_performing_request")}
|
|
span(ng-if="ui.errorMessage") {{ui.errorMessage}} |