Skip to content

Commit

Permalink
User message sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
moniesharma committed Mar 20, 2017
1 parent 900d029 commit 28cce6c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
10 changes: 9 additions & 1 deletion public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1204,4 +1204,12 @@ span#register-amt{
p#reg{
font-size:16px;
color: #5F666D;
}
}
h3#profile {
position: absolute;
right: 0;
margin-right: 20px;
margin-top: 100px;
}


Empty file removed routes/untitled
Empty file.
2 changes: 1 addition & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ router.post('/register', function (req,res) {
router.get('/profile', (req, res) => {


console.log(req.session.user + ' USEERRR')
console.log(req.session.userid + ' USEERRR')
if(req.session.user == null){
res.redirect('/')
} else {
Expand Down
1 change: 0 additions & 1 deletion views/content.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
s
section#intro.intro-2(data-parallax="scroll" data-image-src="assets/images/computer-code.jpg")
.content#mouse-parallax
.container
Expand Down
1 change: 0 additions & 1 deletion views/login.pug
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ section.event-single
form(action='login' method='post')
.col-sm-8
h2 Login
form(action="/login" method="post")
input.reg-input.scroll-reveal(type='text' placeholder='username' name='username')
input.reg-input.scroll-reveal(type='text' placeholder='password' name='password')
label.chk-label.scroll-reveal
Expand Down
14 changes: 7 additions & 7 deletions views/profile.pug
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include header
h1 #{user.username}

if user.orders.length > 0
.container
h3#profile Hello #{user.username}
if user.order > 0
console.log('this is the order' + user.order)
each order in user.orders
p= order.product
else
p we dont have any orders

p= orders.products.id
else
p You dont have any orders

0 comments on commit 28cce6c

Please sign in to comment.