From 8f55edbaa6b1d4a4f2373de7eff57cd6b12a529f Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Tue, 28 Jan 2020 23:40:15 +0200 Subject: [PATCH] i guess this lagged behind an update --- views/user/settings.pug | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/views/user/settings.pug b/views/user/settings.pug index 0d6555e..6140b97 100644 --- a/views/user/settings.pug +++ b/views/user/settings.pug @@ -31,7 +31,8 @@ block body .col-md-3 .nav.flex-column.nav-pills#v-pills-tab(role="tablist", aria-orientation="vertical") a.nav-link.active#v-pills-main-tab(data-toggle="tab", href="#v-pills-main", role="tab", aria-control="v-pills-main", aria-selected="true") General Settings - a.nav-link#v-pills-social-tab(data-toggle="tab", href="#v-pills-social", role="tab", aria-control="v-pills-social", aria-selected="false") Social Accounts + if auth + a.nav-link#v-pills-social-tab(data-toggle="tab", href="#v-pills-social", role="tab", aria-control="v-pills-social", aria-selected="false") Social Accounts a.nav-link#v-pills-oauth2-tab(data-toggle="tab", href="#v-pills-oauth2", role="tab", aria-control="v-pills-oauth2", aria-selected="false") Authorizations a.nav-link#v-pills-actions-tab(data-toggle="tab", href="#v-pills-actions", role="tab", aria-control="v-pills-actions", aria-selected="false") Account Actions .col-9 @@ -64,23 +65,24 @@ block body .tab-pane.fade#v-pills-social(role="tabpanel", aria-labelledby="v-pills-social") h3 Social Media Accounts p You can add social media accounts to your account for ease of login. Once added, logging in from linked sources logs you into this account automatically. - include ../includes/external.pug - if google_auth == false - a.option.disconnect.login-btn.float-lg-right(href="/api/external/google/remove") - i.fas.fa-fw.fa-times - |Unlink Google - if twitter_auth == false - a.option.disconnect.login-btn.float-lg-right(href="/api/external/twitter/remove") - i.fas.fa-fw.fa-times - |Unlink Twitter - if facebook_auth == false - a.option.disconnect.login-btn.float-lg-right(href="/api/external/facebook/remove") - i.fas.fa-fw.fa-times - |Unlink Facebook - if discord_auth == false - a.option.disconnect.login-btn.float-lg-right(href="/api/external/discord/remove") - i.fas.fa-fw.fa-times - |Unlink Discord + if auth + include ../includes/external.pug + if auth.google == false + a.option.disconnect.login-btn.float-lg-right(href="/api/external/google/remove") + i.fas.fa-fw.fa-times + |Unlink Google + if auth.twitter == false + a.option.disconnect.login-btn.float-lg-right(href="/api/external/twitter/remove") + i.fas.fa-fw.fa-times + |Unlink Twitter + if auth.facebook == false + a.option.disconnect.login-btn.float-lg-right(href="/api/external/facebook/remove") + i.fas.fa-fw.fa-times + |Unlink Facebook + if auth.discord == false + a.option.disconnect.login-btn.float-lg-right(href="/api/external/discord/remove") + i.fas.fa-fw.fa-times + |Unlink Discord .tab-pane.fade#v-pills-oauth2(role="tabpanel", aria-labelledby="v-pills-oauth2") h2 Authorized Applications p Applications which have access to basic user information. You may restrict access at any time by pressing the red icon on the top right of the application card.