refactor camper news into 4 pages instead of one
This commit is contained in:
@ -6,5 +6,12 @@ block content
|
||||
.panel.panel-info
|
||||
.panel-heading.text-center Camper News
|
||||
.panel-body
|
||||
include ./submit
|
||||
include ./stories
|
||||
include ./news-nav
|
||||
if (page === 'hot')
|
||||
include ./hot-stories
|
||||
if (page === 'new')
|
||||
include ./new-stories
|
||||
if (page === 'submit')
|
||||
include ./submit-story
|
||||
if (page === 'search')
|
||||
include ./search-stories
|
0
views/stories/new-stories.jade
Normal file
0
views/stories/new-stories.jade
Normal file
15
views/stories/news-nav.jade
Normal file
15
views/stories/news-nav.jade
Normal file
@ -0,0 +1,15 @@
|
||||
.col-xs-12
|
||||
.btn-group.input-group.btn-group-justified(data-toggle='buttons')
|
||||
label.btn.btn-primary.btn-big
|
||||
input#option1(type='radio', name='options')
|
||||
| Hot
|
||||
label.btn.btn-primary.active.btn-big
|
||||
input#option2(type='radio', name='options')
|
||||
| New
|
||||
label.btn.btn-primary.btn-big
|
||||
input#option3(type='radio', name='options')
|
||||
| Submit
|
||||
label.btn.btn-primary.btn-big
|
||||
input#option3(type='radio', name='options')
|
||||
| Search
|
||||
.spacer
|
0
views/stories/search-stories.jade
Normal file
0
views/stories/search-stories.jade
Normal file
@ -1,4 +1,4 @@
|
||||
.col-xs-12
|
||||
#story-submit.col-xs-12
|
||||
form.form-horizontal.control-label-story-submission#story-submission-form
|
||||
.col-xs-2.img-story-post
|
||||
img.img-responsive(src='#{user.profile.picture}')
|
Reference in New Issue
Block a user