refactor show view to have a settings button
This commit is contained in:
@ -2,8 +2,33 @@ extends ../layout
|
|||||||
block content
|
block content
|
||||||
h1.text-center Settings for your Account
|
h1.text-center Settings for your Account
|
||||||
hr
|
hr
|
||||||
h2.text-center Actions
|
h2.text-center Actions
|
||||||
.row
|
.row
|
||||||
|
.col-xs-12
|
||||||
|
if (!user.isGithubCool)
|
||||||
|
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/link/github')
|
||||||
|
i.fa.fa-github
|
||||||
|
| Link my GitHub to unlock my portfolio
|
||||||
|
else
|
||||||
|
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/link/github')
|
||||||
|
i.fa.fa-github
|
||||||
|
| Update my portfolio from GitHub
|
||||||
|
if (!user.twitter)
|
||||||
|
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/link/twitter')
|
||||||
|
i.fa.fa-twitter
|
||||||
|
| Add my Twitter to my portfolio
|
||||||
|
if (!user.facebook)
|
||||||
|
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/link/facebook')
|
||||||
|
i.fa.fa-facebook
|
||||||
|
| Add my Facebook to my portfolio
|
||||||
|
if (!user.linkedin)
|
||||||
|
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/link/linkedin')
|
||||||
|
i.fa.fa-linkedin
|
||||||
|
| Add my LinkedIn to my portfolio
|
||||||
|
if (!user.google)
|
||||||
|
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/link/google')
|
||||||
|
i.fa.fa-google-plus
|
||||||
|
| Add my Google+ to my portfolio
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/logout')
|
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/logout')
|
||||||
| Sign me out of Free Code Camp
|
| Sign me out of Free Code Camp
|
||||||
|
@ -4,33 +4,14 @@ block content
|
|||||||
script.
|
script.
|
||||||
var challengeName = 'Profile View';
|
var challengeName = 'Profile View';
|
||||||
if (user && user.username === username)
|
if (user && user.username === username)
|
||||||
h1.text-center Update your code portfolio
|
.row
|
||||||
.row
|
if (!user.isGithubCool)
|
||||||
.col-xs-12
|
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/link/github')
|
||||||
if (!user.isGithubCool)
|
i.fa.fa-github
|
||||||
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/link/github')
|
| Link my GitHub to unlock my portfolio
|
||||||
i.fa.fa-github
|
.col-xs-12
|
||||||
| Link my GitHub to unlock my portfolio
|
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/settings')
|
||||||
else
|
| Update your settings
|
||||||
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/link/github')
|
|
||||||
i.fa.fa-github
|
|
||||||
| Update my portfolio from GitHub
|
|
||||||
if (!user.twitter)
|
|
||||||
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/link/twitter')
|
|
||||||
i.fa.fa-twitter
|
|
||||||
| Add my Twitter to my portfolio
|
|
||||||
if (!user.facebook)
|
|
||||||
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/link/facebook')
|
|
||||||
i.fa.fa-facebook
|
|
||||||
| Add my Facebook to my portfolio
|
|
||||||
if (!user.linkedin)
|
|
||||||
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/link/linkedin')
|
|
||||||
i.fa.fa-linkedin
|
|
||||||
| Add my LinkedIn to my portfolio
|
|
||||||
if (!user.google)
|
|
||||||
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/link/google')
|
|
||||||
i.fa.fa-google-plus
|
|
||||||
| Add my Google+ to my portfolio
|
|
||||||
.spacer
|
.spacer
|
||||||
h1.text-center #{username}'s code portfolio
|
h1.text-center #{username}'s code portfolio
|
||||||
hr
|
hr
|
||||||
|
Reference in New Issue
Block a user