2015-03-03 01:41:32 -08:00
|
|
|
extends ../layout
|
|
|
|
block content
|
2015-03-05 17:30:05 -08:00
|
|
|
script(src='/js/lib/moment/moment.js')
|
2015-03-04 07:15:00 +09:00
|
|
|
script.
|
|
|
|
var challengeName = 'Camper News';
|
2015-03-05 19:21:26 +09:00
|
|
|
var user = !{JSON.stringify(user)};
|
2015-03-05 17:30:05 -08:00
|
|
|
var page = !{JSON.stringify(page)};
|
2015-03-03 14:35:35 -08:00
|
|
|
.panel.panel-info
|
|
|
|
.panel-heading.text-center Camper News
|
2015-03-05 19:21:26 +09:00
|
|
|
.panel-body
|
2015-03-05 13:42:01 -08:00
|
|
|
include ./news-nav
|
2015-03-06 08:20:49 +09:00
|
|
|
.spacer
|
2015-03-05 13:42:01 -08:00
|
|
|
if (page === 'hot')
|
|
|
|
include ./hot-stories
|
2015-03-06 08:11:18 +09:00
|
|
|
if (page === 'recent')
|
2015-03-05 13:42:01 -08:00
|
|
|
include ./new-stories
|
|
|
|
if (page === 'submit')
|
|
|
|
include ./submit-story
|
|
|
|
if (page === 'search')
|
|
|
|
include ./search-stories
|