freeCodeCamp/views/stories/index.jade

30 lines
1.0 KiB
Plaintext
Raw Normal View History

extends ../layout
block content
2015-03-06 01:30:05 +00:00
script(src='/js/lib/moment/moment.js')
script.
var challengeName = 'Camper News';
var user = !{JSON.stringify(user)};
2015-03-06 01:30:05 +00:00
var page = !{JSON.stringify(page)};
2015-03-03 22:35:35 +00:00
.panel.panel-info
.panel-heading.text-center Camper News
.panel-body
include ./news-nav
.spacer
if (page === 'hot')
include ./hot-stories
if (page === 'recent')
include ./new-stories
if (page === 'submit')
2015-03-08 00:48:57 +00:00
if (user)
include ./preliminary-submit
else
.spacer
.text-center
a.btn.btn-cta.signup-btn.btn-primary(href="/login") Sign in to post your story (it's free)
.spacer
if (page === 'search')
include ./search-stories
if (page === 'storySubmission')
include ./submit-story
if (page === 'show')
include ./show