add link to github waypoint to non github cool campers

This commit is contained in:
Berkeley Martinez
2015-08-05 13:54:21 -07:00
parent 117306de33
commit 07e9bbf00a

View File

@ -5,11 +5,18 @@ block content
.panel.panel-info(ng-controller="profileValidationController")
.panel-heading.text-center Update your portfolio here:
.panel-body
if (!user.github)
if (!user.isGithubCool)
.row
.col-xs-12
.text-left.btn-info.btn.btn-block.btn-link-social(href='http://www.freecodecamp.com/challenges/waypoint-join-our-chat-room')
span Link your account to GitHub to update your portfolio page. Click here if you dont have a GitHub account yet.
.row
.col-xs-12
a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/auth/github')
i.fa.fa-github
| Link GitHub with my account
.row
.col-xs-12
form.form-horizontal(action='/account/profile', method='POST', novalidate='novalidate', name='profileForm' ng-show="asyncComplete")
input(type='hidden', name='_csrf', value=_csrf)
@ -63,7 +70,7 @@ block content
span.ion-close-circled
| Please enter a valid URL format (http://www.example.com).
button.btn.btn-lg.btn-block.btn-primary.btn-link-social(type='submit', ng-disabled='profileForm.$invalid')
button.btn.btn-lg.btn-block.btn-primary.btn-link-social(type='submit', ng-disabled='!user.isGithubCool || profileForm.$invalid')
span.ion-edit
| Update my info