2015-03-03 09:41:32 +00:00
|
|
|
extends ../layout
|
|
|
|
block content
|
2015-03-22 08:16:02 +00:00
|
|
|
if (user)
|
2015-04-19 07:36:54 +00:00
|
|
|
script.
|
|
|
|
var isLoggedIn = true;
|
2015-08-01 02:51:21 +00:00
|
|
|
var userId = !{JSON.stringify(user.id)};
|
|
|
|
var username = !{JSON.stringify(user.username)};
|
2015-03-22 08:16:02 +00:00
|
|
|
else
|
2015-04-19 07:36:54 +00:00
|
|
|
script.
|
|
|
|
var isLoggedIn = false;
|
2015-03-03 22:15:00 +00:00
|
|
|
script.
|
|
|
|
var challengeName = 'Camper News';
|
2015-03-06 01:30:05 +00:00
|
|
|
var page = !{JSON.stringify(page)};
|
2016-01-09 21:32:52 +00:00
|
|
|
h1.text-center Camper News
|
|
|
|
hr
|
|
|
|
.spacer
|
|
|
|
include news-nav
|
|
|
|
.spacer
|
|
|
|
if (page === 'hot')
|
|
|
|
include hot-stories
|
|
|
|
if (page === 'submit')
|
|
|
|
if (user)
|
|
|
|
include preliminary-submit
|
|
|
|
else
|
2015-03-05 23:20:49 +00:00
|
|
|
.spacer
|
2016-01-09 21:32:52 +00:00
|
|
|
.text-center
|
|
|
|
a.btn.btn-cta.signup-btn.btn-primary(href="/login") Sign in to post your story (it's free)
|
|
|
|
.spacer
|
|
|
|
if (page === 'storySubmission')
|
|
|
|
include submit-story
|
|
|
|
if (page === 'show')
|
|
|
|
include show
|