make both score and picture redirect to portfolio, make chat and forum links redirect universally regardless of completion of challenges, simplify accounts page
This commit is contained in:
1
app.js
1
app.js
@ -208,6 +208,7 @@ app.use(
|
|||||||
app.get('/', homeController.index);
|
app.get('/', homeController.index);
|
||||||
app.get('/privacy', resourcesController.privacy);
|
app.get('/privacy', resourcesController.privacy);
|
||||||
app.get('/jquery-exercises', resourcesController.jqueryExercises);
|
app.get('/jquery-exercises', resourcesController.jqueryExercises);
|
||||||
|
app.get('/chat', resourcesController.chat);
|
||||||
app.get('/live-pair-programming', resourcesController.livePairProgramming);
|
app.get('/live-pair-programming', resourcesController.livePairProgramming);
|
||||||
app.get('/install-screenhero', resourcesController.installScreenHero);
|
app.get('/install-screenhero', resourcesController.installScreenHero);
|
||||||
app.get('/javascript-in-your-inbox', resourcesController.javaScriptInYourInbox);
|
app.get('/javascript-in-your-inbox', resourcesController.javaScriptInYourInbox);
|
||||||
|
@ -55,6 +55,12 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
chat: function chat(req, res) {
|
||||||
|
res.render('resources/chat', {
|
||||||
|
title: "Enter Free Code Camp's Chat Rooms"
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
nonprofitProjectInstructions: function nonprofitProjectInstructions(req, res) {
|
nonprofitProjectInstructions: function nonprofitProjectInstructions(req, res) {
|
||||||
res.render('resources/nonprofit-project-instructions', {
|
res.render('resources/nonprofit-project-instructions', {
|
||||||
title: 'Nonprofit Project Instructions'
|
title: 'Nonprofit Project Instructions'
|
||||||
|
@ -704,6 +704,11 @@ iframe.iphone {
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gitter-imbed {
|
||||||
|
height: 100%;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
//uncomment this to see the dimensions of all elements outlined in red
|
//uncomment this to see the dimensions of all elements outlined in red
|
||||||
//* {
|
//* {
|
||||||
// border-color: red;
|
// border-color: red;
|
||||||
|
@ -2,8 +2,8 @@ extends ../layout
|
|||||||
block content
|
block content
|
||||||
script.
|
script.
|
||||||
var challengeName = 'Account View'
|
var challengeName = 'Account View'
|
||||||
.panel.panel-primary.min-height-1000(ng-controller="profileValidationController")
|
.panel.panel-info.min-height-1000(ng-controller="profileValidationController")
|
||||||
.panel-heading.text-center Update your profile here:
|
.panel-heading.text-center Update your portfolio here:
|
||||||
.panel-body
|
.panel-body
|
||||||
.container.text-center
|
.container.text-center
|
||||||
form.form-horizontal(action='/account/profile', method='POST', novalidate='novalidate', name='profileForm' ng-show="asyncComplete")
|
form.form-horizontal(action='/account/profile', method='POST', novalidate='novalidate', name='profileForm' ng-show="asyncComplete")
|
||||||
@ -268,54 +268,44 @@ block content
|
|||||||
span.ion-edit
|
span.ion-edit
|
||||||
| Update my Portfolio
|
| Update my Portfolio
|
||||||
br
|
br
|
||||||
.panel.panel-primary
|
|
||||||
.panel-heading.text-center Actions
|
|
||||||
.panel-body
|
|
||||||
.col-xs-12
|
|
||||||
if (user.profile.username)
|
|
||||||
a.btn.btn-lg.btn-block.btn-info.btn-link-social(href='/#{user.profile.username}') Check out my Public Profile
|
|
||||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/challenges') Take me to my current challenge
|
|
||||||
a.btn.btn-lg.btn-block.btn-warning.btn-link-social(href='/logout') Sign out
|
|
||||||
br
|
|
||||||
- if (!user.google || !user.facebook || /*!user.github ||*/ !user.linkedin || !user.twitter)
|
- if (!user.google || !user.facebook || /*!user.github ||*/ !user.linkedin || !user.twitter)
|
||||||
.panel.panel-primary
|
.panel.panel-info
|
||||||
.panel-heading.text-center Link other services to your account:
|
.panel-heading.text-center Manage your account here:
|
||||||
.panel-body
|
.panel-body
|
||||||
- if (!user.google)
|
- if (!user.google)
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/auth/google')
|
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/auth/google')
|
||||||
i.fa.fa-google-plus
|
i.fa.fa-google-plus
|
||||||
| Link Google with your account
|
| Link Google with my account
|
||||||
- if (!user.facebook)
|
- if (!user.facebook)
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/auth/facebook')
|
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/auth/facebook')
|
||||||
i.fa.fa-facebook
|
i.fa.fa-facebook
|
||||||
| Link Facebook with your account
|
| Link Facebook with my account
|
||||||
//- if (!user.github)
|
//- if (!user.github)
|
||||||
// .col-xs-12
|
// .col-xs-12
|
||||||
// a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/auth/github')
|
// a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/auth/github')
|
||||||
// i.fa.fa-github
|
// i.fa.fa-github
|
||||||
// | Link GitHub with your account
|
// | Link GitHub with my account
|
||||||
- if (!user.linkedin)
|
- if (!user.linkedin)
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/auth/linkedin')
|
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/auth/linkedin')
|
||||||
i.fa.fa-linkedin
|
i.fa.fa-linkedin
|
||||||
| Link LinkedIn with your account
|
| Link LinkedIn with my account
|
||||||
- if (!user.twitter)
|
- if (!user.twitter)
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/auth/twitter')
|
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/auth/twitter')
|
||||||
i.fa.fa-twitter
|
i.fa.fa-twitter
|
||||||
| Link Twitter with your account
|
| Link Twitter with my account
|
||||||
|
.col-xs-12
|
||||||
.panel.panel-danger
|
a.btn.btn-lg.btn-block.btn-warning.btn-link-social(href='/logout')
|
||||||
.panel-heading.text-center Danger Zone:
|
span.ion-android-exit
|
||||||
.panel-body
|
| Sign me out of Free Code Camp
|
||||||
.col-xs-12.text-center
|
.col-xs-12
|
||||||
button.btn.btn-danger.btn-small.confirm-deletion
|
a.btn.btn-lg.btn-block.btn-danger.confirm-deletion.btn-link-social
|
||||||
span.ion-trash-b
|
span.ion-trash-b
|
||||||
| I want to delete my account
|
| Delete my Free Code Camp account
|
||||||
br
|
|
||||||
br
|
|
||||||
script.
|
script.
|
||||||
$('.confirm-deletion').on("click", function() {
|
$('.confirm-deletion').on("click", function() {
|
||||||
$('#modal-dialog').modal('show');
|
$('#modal-dialog').modal('show');
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
block content
|
block content
|
||||||
.col-xs-12.col-sm-12.col-md-12
|
.col-xs-12.col-sm-12.col-md-12
|
||||||
.panel.panel-primary
|
.panel.panel-info
|
||||||
.panel-heading.text-center
|
.panel-heading.text-center
|
||||||
h1 #{username}'s portfolio
|
h1 #{username}'s portfolio
|
||||||
.panel-body
|
.panel-body
|
||||||
|
if (user && user.profile.username === username)
|
||||||
|
.col-xs-12
|
||||||
|
.text-center
|
||||||
|
a.btn.btn-big.btn-primary(href="/account") Update my public portfolio
|
||||||
|
br
|
||||||
.row
|
.row
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
.col-xs-12.col-sm-12.col-md-5
|
.col-xs-12.col-sm-12.col-md-5
|
||||||
@ -35,9 +40,6 @@ block content
|
|||||||
h3.flat-top.bolded.wrappable= location
|
h3.flat-top.bolded.wrappable= location
|
||||||
h4.flat-top.wrappable= bio
|
h4.flat-top.wrappable= bio
|
||||||
.col-xs-12.col-sm-12.col-md-3.text-center
|
.col-xs-12.col-sm-12.col-md-3.text-center
|
||||||
if (user && user.profile.username === username)
|
|
||||||
a.btn.btn-warning(href="/account") Edit my Profile
|
|
||||||
|
|
||||||
.background-svg.img-center
|
.background-svg.img-center
|
||||||
.points-on-top
|
.points-on-top
|
||||||
= "[ " + points + " ]"
|
= "[ " + points + " ]"
|
||||||
|
@ -8,22 +8,10 @@
|
|||||||
img.img-responsive.nav-logo(src='https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg', alt='learn to code javascript at Free Code Camp logo')
|
img.img-responsive.nav-logo(src='https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg', alt='learn to code javascript at Free Code Camp logo')
|
||||||
.collapse.navbar-collapse
|
.collapse.navbar-collapse
|
||||||
ul.nav.navbar-nav.navbar-right.hamburger-dropdown
|
ul.nav.navbar-nav.navbar-right.hamburger-dropdown
|
||||||
- if (!cc)
|
|
||||||
li
|
|
||||||
a(href='/challenges/0') Challenges
|
|
||||||
- else
|
|
||||||
li
|
li
|
||||||
a(href='/challenges') Challenges
|
a(href='/challenges') Challenges
|
||||||
- if (!cc || (cc && cc[1] < 1))
|
|
||||||
li
|
li
|
||||||
a(href='/challenges/1') Chat
|
a(href='/chat') Chat
|
||||||
- else
|
|
||||||
li
|
|
||||||
a(href='http://chat.freecodecamp.com' target='_blank') Chat
|
|
||||||
- if (!cc || (cc && cc[2] < 1))
|
|
||||||
li
|
|
||||||
a(href='/challenges/2') Forum
|
|
||||||
- else
|
|
||||||
li
|
li
|
||||||
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
||||||
li
|
li
|
||||||
@ -34,6 +22,9 @@
|
|||||||
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
|
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
|
||||||
else
|
else
|
||||||
li
|
li
|
||||||
|
if (user.profile.username)
|
||||||
|
a(href='/' + user.profile.username) [ #{user.points} ]
|
||||||
|
else
|
||||||
a(href='/account') [ #{user.points} ]
|
a(href='/account') [ #{user.points} ]
|
||||||
.hidden-xs
|
.hidden-xs
|
||||||
if user.profile.picture
|
if user.profile.picture
|
||||||
|
22
views/resources/chat.jade
Normal file
22
views/resources/chat.jade
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
extends ../layout-wide
|
||||||
|
block content
|
||||||
|
h3
|
||||||
|
ol.col-md-offset-2
|
||||||
|
li Create a GitHub Account
|
||||||
|
a(href="http://github.com/join", target='_blank') here
|
||||||
|
| .
|
||||||
|
li Download the chat room app on
|
||||||
|
a(href="https://update.gitter.im/osx/latest") Windows
|
||||||
|
| ,
|
||||||
|
a(href="https://update.gitter.im/win/latest") Mac
|
||||||
|
| ,
|
||||||
|
a(href="http://appstore.com/gitter") iPhone
|
||||||
|
| , or
|
||||||
|
a(href="https://play.google.com/store/apps/details?id=im.gitter.gitter&hl=en_GB") Android
|
||||||
|
| , or go
|
||||||
|
a(href="http://chat.freecodecamp.com") here
|
||||||
|
| .
|
||||||
|
li Keep the chat room open while you code so that you can meet friends and ask for help.
|
||||||
|
.col-xs-12
|
||||||
|
.embed-responsive.embed-responsive-16by9.gitter-imbed
|
||||||
|
iframe(src='http://www.gitter.im/freecodecamp/freecodecamp', frameborder='0', scrolling='no')
|
Reference in New Issue
Block a user