2014-01-07 18:36:44 +00:00
|
|
|
|
extends ../layout
|
2013-11-19 18:20:50 +00:00
|
|
|
|
block content
|
2015-02-15 03:52:44 +00:00
|
|
|
|
script.
|
|
|
|
|
var challengeName = 'Account View'
|
2015-02-20 00:33:08 +00:00
|
|
|
|
.panel.panel-info.min-height-1000(ng-controller="profileValidationController")
|
|
|
|
|
.panel-heading.text-center Update your portfolio here:
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.panel-body
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.container.text-center
|
|
|
|
|
form.form-horizontal(action='/account/profile', method='POST', novalidate='novalidate', name='profileForm' ng-show="asyncComplete")
|
|
|
|
|
input(type='hidden', name='_csrf', value=_csrf)
|
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5
|
|
|
|
|
h2 Bio
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='name') Name *
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', placeholder='Name', name='name', autocomplete="off", ng-model='user.name', ng-minlength='3', ng-maxlength='50', required='required', id='name')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.name.$invalid && profileForm.name.$error.required")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled(id='#name-error')
|
|
|
|
|
| Your name is required.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show='profileForm.name.$error.minlength && !profileForm.name.$pristine')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your name must be at least 3 characters.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show='profileForm.name.$error.maxlength && !profileForm.name.$pristine')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your name must be fewer than 50 characters.
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='username') Username (path to public profile) *
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', placeholder='username' name='username', autocomplete="off", id='username', ng-model='user.username', required='required', ng-minlength='5', ng-maxlength='20', ng-keypress='', unique-username='', ng-pattern="/^[A-z0-9_]+$/")
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.username.$error.pattern")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your username should only contain letters, numbers and underscores (az10_).
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.username.$error.required")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your username is required.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.username.$error.minlength && !profileForm.username.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your username must be at least 5 characters.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.username.$error.maxlength && !profileForm.username.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your username must be fewer than 15 characters.
|
2015-06-04 19:54:41 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.username.$error.unique && !profileForm.username.$pristine && $scope.storedUsername !== user.username")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
2015-01-30 21:43:41 +00:00
|
|
|
|
| That username is already in use.
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') Email *
|
|
|
|
|
.col-sm-4
|
|
|
|
|
input.form-control(type='email', name='email', id='email', autocomplete="off", ng-model='user.email', required='required', ng-keypress='', unique-email='')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.email.$error.required")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your email address is required.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.$error.email && !profileForm.email.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid email format.
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.email.$error.unique && !profileForm.email.$pristine")
|
2015-01-30 21:43:41 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| That email is already in use.
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='location') Location
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='location', autocomplete="off", id='location', ng-model='user.location')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') Link to Profile Photo (1:1 ratio)
|
2015-01-09 06:31:15 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='picture', id='picture', ng-model='user.picture', placeholder='http://www.example.com/image.jpg')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-show="profileForm.picture.$error.url && !profileForm.picture.$pristine")
|
2015-01-15 23:16:35 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
2015-02-01 00:41:33 +00:00
|
|
|
|
| Please enter a valid URL format (http://www.example.com/image.jpg).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='bio') Bio (140 characters)
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='bio', autocomplete="off", ng-model='user.bio', ng-maxlength='140', id='bio')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show='profileForm.bio.$error.maxlength && !profileForm.bio.$pristine')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your bio must be fewer than 140 characters.
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
.col-sm-offset-5.col-sm-4
|
|
|
|
|
button.btn.btn-primary.btn-block(type='submit', ng-disabled='profileForm.$invalid')
|
|
|
|
|
span.ion-edit
|
|
|
|
|
| Update my Bio
|
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5
|
|
|
|
|
h2 Social Profiles
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') Twitter
|
|
|
|
|
.col-sm-4
|
|
|
|
|
.input-group.twitter-input
|
|
|
|
|
span.input-group-addon @
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='twitterHandle', autocomplete="off", id='twitterHandle', ng-model='user.twitterHandle', ng-maxlength='15', ng-pattern="/^[A-z0-9_]+$/")
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.twitterHandle.$error.pattern")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your Twitter handle should only contain letters, numbers and underscores (az10_).
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show='profileForm.twitterHandle.$error.maxlength && !profileForm.twitterHandle.$pristine')
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Your name must be fewer than 15 characters.
|
|
|
|
|
.form-group
|
2015-05-20 14:29:05 +00:00
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') GitHub
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='githubProfile', id='githubProfile', autocomplete="off", ng-model='user.githubProfile', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.githubProfile.$error.url && !profileForm.githubProfile.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') CodePen
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='codepenProfile', id='codepenProfile', autocomplete="off", ng-model='user.codepenProfile', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.codepenProfile.$error.url && !profileForm.codepenProfile.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') LinkedIn
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='linkedinProfile', id='linkedinProfile', autocomplete="off", ng-model='user.linkedinProfile', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.linkedinProfile.$error.url && !profileForm.linkedinProfile.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
|
|
|
|
|
2015-05-09 23:23:45 +00:00
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='email') Facebook
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='facebookProfile', id='facebookProfile', autocomplete="off", ng-model='user.facebookProfile', placeholder='http://')
|
2015-05-09 23:46:07 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.facebookProfile.$error.url && !profileForm.facebookProfile.$pristine")
|
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
2015-05-09 23:23:45 +00:00
|
|
|
|
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.form-group
|
|
|
|
|
.col-sm-offset-5.col-sm-4
|
|
|
|
|
button.btn.btn-primary.btn-block(type='submit', ng-disabled='profileForm.$invalid')
|
|
|
|
|
span.ion-edit
|
|
|
|
|
| Update my Social Links
|
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5.negative-bottom
|
|
|
|
|
h2 Portfolio
|
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5.flat-top
|
|
|
|
|
h3 First Portfolio Project
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website1Title') Title
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='website1Title', id='website1Title', autocomplete="off", ng-model='user.website1Title', ng-maxlength='140')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website1Title.$error.maxlength && !profileForm.website1Title.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Portfolio project title must be fewer than 140 characters.
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website1Link') Link
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website1Link', id='website1Link', autocomplete="off", ng-model='user.website1Link', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website1Link.$error.url && !profileForm.website1Link.$pristine")
|
2015-01-15 23:45:24 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website1Image') Image Link (4:3 ratio)
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website1Image', id='website1Image', autocomplete="off", ng-model='user.website1Image', placeholder='http://www.example.com/image.jpg')
|
2015-01-15 23:45:24 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-show="profileForm.website1Image.$error.url && !profileForm.website1Image.$pristine")
|
2015-02-01 00:41:33 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com/image.jpg).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5.flat-top
|
|
|
|
|
h3 Second Portfolio Project
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website2Title') Title
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='website2Title', id='website2Title', autocomplete="off", ng-model='user.website2Title', ng-maxlength='140')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website2Title.$error.maxlength && !profileForm.website2Title.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Portfolio project title must be fewer than 140 characters.
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website2Link') Link
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website2Link', id='website2Link', autocomplete="off", ng-model='user.website2Link', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website2Link.$error.url && !profileForm.website2Link.$pristine")
|
2015-01-15 23:45:24 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website2Image') Image Link (4:3 ratio)
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website2Image', id='website2Image', autocomplete="off", ng-model='user.website2Image', placeholder='http://www.example.com/image.jpg')
|
2015-02-01 00:41:33 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-show="profileForm.website2Image.$error.url && !profileForm.website2Image.$pristine")
|
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com/image.jpg).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.col-sm-4.col-sm-offset-5.flat-top
|
|
|
|
|
h3 Third Portfolio Project
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website3Title') Title
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='text', name='website3Title', id='website3Title', autocomplete="off", ng-model='user.website3Title', ng-maxlength='140')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website3Title.$error.maxlength && !profileForm.website3Title.$pristine")
|
2015-01-15 23:41:50 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Portfolio project title must be fewer than 140 characters.
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website3Link') Link
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website3Link', id='website3Link', autocomplete="off", ng-model='user.website3Link', placeholder='http://')
|
2015-01-30 20:06:21 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-cloak, ng-show="profileForm.website3Link.$error.url && !profileForm.website3Link.$pristine")
|
2015-01-15 23:45:24 +00:00
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
label.col-sm-3.col-sm-offset-2.control-label(for='website3Image') Image Link (4:3 ratio)
|
|
|
|
|
.col-sm-4
|
2015-06-04 19:54:41 +00:00
|
|
|
|
input.form-control(type='url', name='website3Image', id='website3Image', autocomplete="off", ng-model='user.website3Image', placeholder='http://www.example.com/image.jpg', ng-pattern='/[\.](jpg|png|jpeg|gif)(\s+)?$/')
|
2015-02-01 00:41:33 +00:00
|
|
|
|
.col-sm-4.col-sm-offset-5(ng-show="profileForm.website3Image.$error.url && !profileForm.website3Image.$pristine")
|
|
|
|
|
alert(type='danger')
|
|
|
|
|
span.ion-close-circled
|
|
|
|
|
| Please enter a valid URL format (http://www.example.com/image.jpg).
|
2015-01-15 23:41:50 +00:00
|
|
|
|
|
|
|
|
|
.form-group
|
2015-01-09 02:39:16 +00:00
|
|
|
|
.col-sm-offset-5.col-sm-4
|
|
|
|
|
button.btn.btn-primary.btn-block(type='submit', ng-disabled='profileForm.$invalid')
|
|
|
|
|
span.ion-edit
|
2015-01-15 23:41:50 +00:00
|
|
|
|
| Update my Portfolio
|
|
|
|
|
br
|
2015-02-20 00:33:08 +00:00
|
|
|
|
|
2015-04-18 02:28:07 +00:00
|
|
|
|
.panel.panel-info
|
|
|
|
|
.panel-heading.text-center Manage your account here:
|
|
|
|
|
.panel-body
|
2015-05-28 23:59:25 +00:00
|
|
|
|
if (!user.google || !user.facebook || !user.linkedin || !user.twitter)
|
|
|
|
|
if (!user.google)
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/auth/google')
|
|
|
|
|
i.fa.fa-google-plus
|
2015-02-20 00:33:08 +00:00
|
|
|
|
| Link Google with my account
|
2015-05-28 23:59:25 +00:00
|
|
|
|
if (!user.facebook)
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/auth/facebook')
|
|
|
|
|
i.fa.fa-facebook
|
2015-02-20 00:33:08 +00:00
|
|
|
|
| Link Facebook with my account
|
2015-05-28 23:59:25 +00:00
|
|
|
|
//if (!user.github)
|
2015-01-15 23:41:50 +00:00
|
|
|
|
// .col-xs-12
|
|
|
|
|
// a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/auth/github')
|
|
|
|
|
// i.fa.fa-github
|
2015-02-20 00:33:08 +00:00
|
|
|
|
// | Link GitHub with my account
|
2015-05-28 23:59:25 +00:00
|
|
|
|
if (!user.linkedin)
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/auth/linkedin')
|
|
|
|
|
i.fa.fa-linkedin
|
2015-02-20 00:33:08 +00:00
|
|
|
|
| Link LinkedIn with my account
|
2015-05-28 23:59:25 +00:00
|
|
|
|
if (!user.twitter)
|
2015-01-15 23:41:50 +00:00
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/auth/twitter')
|
|
|
|
|
i.fa.fa-twitter
|
2015-02-20 00:33:08 +00:00
|
|
|
|
| Link Twitter with my account
|
2015-04-18 02:28:07 +00:00
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-warning.btn-link-social(href='/logout')
|
|
|
|
|
span.ion-android-exit
|
|
|
|
|
| Sign me out of Free Code Camp
|
|
|
|
|
.col-xs-12
|
|
|
|
|
a.btn.btn-lg.btn-block.btn-danger.confirm-deletion.btn-link-social
|
|
|
|
|
span.ion-trash-b
|
|
|
|
|
| Delete my Free Code Camp account
|
|
|
|
|
script.
|
|
|
|
|
$('.confirm-deletion').on("click", function() {
|
|
|
|
|
$('#modal-dialog').modal('show');
|
|
|
|
|
});
|
|
|
|
|
#modal-dialog.modal.animated.wobble
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
a.close(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
|
|
|
h3 Are you really leaving us?
|
|
|
|
|
.modal-body
|
|
|
|
|
p Pro Tip: If you tweet feedback to 
|
|
|
|
|
a(href="https://twitter.com/intent/tweet?text=Hey%20@freecodecamp") @FreeCodeCamp
|
|
|
|
|
| , we'll act quickly on it!
|
|
|
|
|
.modal-footer
|
|
|
|
|
a.btn.btn-success.btn-block(href='#', data-dismiss='modal', aria-hidden='true')
|
|
|
|
|
span.ion-happy
|
|
|
|
|
| Nevermind, I'll stick around
|
|
|
|
|
br
|
|
|
|
|
form(action='/account/delete', method='POST')
|
|
|
|
|
input(type='hidden', name='_csrf', value=_csrf)
|
|
|
|
|
button.btn.btn-danger.btn-block(type='submit')
|
|
|
|
|
span.ion-trash-b
|
|
|
|
|
| Yes, Delete my account
|