Display hot/recent/submit/search views correctly through index
This commit is contained in:
@ -33,13 +33,13 @@ exports.hot = function(req, res, next) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.submitNew = function(req,res, next) {
|
exports.submitNew = function(req,res, next) {
|
||||||
res.render('stories/submit-story', {
|
res.render('stories/index', {
|
||||||
page: 'submit'
|
page: 'submit'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.search = function(req, res, next) {
|
exports.search = function(req, res, next) {
|
||||||
res.render('stories/search-stories', {
|
res.render('stories/index', {
|
||||||
page: 'search'
|
page: 'search'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -7,6 +7,7 @@ block content
|
|||||||
.panel-heading.text-center Camper News
|
.panel-heading.text-center Camper News
|
||||||
.panel-body
|
.panel-body
|
||||||
include ./news-nav
|
include ./news-nav
|
||||||
|
.spacer
|
||||||
if (page === 'hot')
|
if (page === 'hot')
|
||||||
include ./hot-stories
|
include ./hot-stories
|
||||||
if (page === 'recent')
|
if (page === 'recent')
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#story-submit.col-xs-12
|
.spacer
|
||||||
|
.col-xs-12
|
||||||
form.form-horizontal.control-label-story-submission#story-submission-form
|
form.form-horizontal.control-label-story-submission#story-submission-form
|
||||||
.col-xs-2.img-story-post
|
.col-xs-2.img-story-post
|
||||||
img.img-responsive(src='#{user.profile.picture}')
|
img.img-responsive(src='#{user.profile.picture}')
|
||||||
@ -13,6 +14,6 @@
|
|||||||
label.control-label.control-label-story-submission(for='name') Title
|
label.control-label.control-label-story-submission(for='name') Title
|
||||||
.col-xs-11
|
.col-xs-11
|
||||||
input.form-control(placeholder='Type a headline for your link here', name='Title')
|
input.form-control(placeholder='Type a headline for your link here', name='Title')
|
||||||
|
.spacer
|
||||||
.form-group
|
.form-group
|
||||||
.btn.btn-large.btn-block.btn-primary#story-submit Submit
|
.btn.btn-big.btn-block.btn-primary#story-submit Submit
|
||||||
.spacer
|
|
Reference in New Issue
Block a user