overleaf/services/web/app/views/user/settings/user-oauth.pug
Timothée Alby 54186d9db1 Add linked accounts section to user settings page (#1705)
Add linked accounts section to user settings page

GitOrigin-RevId: d2bb26a3bfb3946144a05b98f58d50a2c57f3040
2019-04-23 14:34:55 +00:00

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}}