refactor camper news into 4 pages instead of one

This commit is contained in:
Michael Q Larson
2015-03-05 13:42:01 -08:00
parent 7e14990698
commit 25f589479a
6 changed files with 25 additions and 3 deletions

View File

@ -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

View File

View 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

View File

View 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}')