Removed auth if-checks
This commit is contained in:
@@ -75,32 +75,27 @@ block content
|
|||||||
.page-header
|
.page-header
|
||||||
h3 Linked Accounts
|
h3 Linked Accounts
|
||||||
|
|
||||||
if secrets.googleAuth
|
if user.google
|
||||||
if user.google
|
p: a.text-danger(href='/account/unlink/google') Unlink your Google account
|
||||||
p: a.text-danger(href='/account/unlink/google') Unlink your Google account
|
else
|
||||||
else
|
p: a(href='/auth/google') Link your Google account
|
||||||
p: a(href='/auth/google') Link your Google account
|
|
||||||
|
|
||||||
if secrets.facebookAuth
|
if user.facebook
|
||||||
if user.facebook
|
p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
|
||||||
p: a.text-danger(href='/account/unlink/facebook') Unlink your Facebook account
|
else
|
||||||
else
|
p: a(href='/auth/facebook') Link your Facebook account
|
||||||
p: a(href='/auth/facebook') Link your Facebook account
|
|
||||||
|
|
||||||
if secrets.twitterAuth
|
if user.twitter
|
||||||
if user.twitter
|
p: a.text-danger(href='/account/unlink/twitter') Unlink your Twitter account
|
||||||
p: a.text-danger(href='/account/unlink/twitter') Unlink your Twitter account
|
else
|
||||||
else
|
p: a(href='/auth/twitter') Link your Twitter account
|
||||||
p: a(href='/auth/twitter') Link your Twitter account
|
|
||||||
|
|
||||||
if secrets.githubAuth
|
if user.github
|
||||||
if user.github
|
p: a.text-danger(href='/account/unlink/github') Unlink your GitHub account
|
||||||
p: a.text-danger(href='/account/unlink/github') Unlink your GitHub account
|
else
|
||||||
else
|
p: a(href='/auth/github') Link your GitHub account
|
||||||
p: a(href='/auth/github') Link your GitHub account
|
|
||||||
|
|
||||||
if secrets.linkedinAuth
|
if user.linkedin
|
||||||
if user.linkedin
|
p: a.text-danger(href='/account/unlink/linkedin') Unlink your LinkedIn account
|
||||||
p: a.text-danger(href='/account/unlink/linkedin') Unlink your LinkedIn account
|
else
|
||||||
else
|
p: a(href='/auth/linkedin') Link your LinkedIn account
|
||||||
p: a(href='/auth/linkedin') Link your LinkedIn account
|
|
Reference in New Issue
Block a user