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-06-04 20:20:42 +00:00
|
|
|
var B3BA669EC5C1DD70FB478221E067A7E1B686929C569F5E73561B69C8F42129B = !{JSON.stringify(user.id)};
|
2015-06-04 19:54:41 +00:00
|
|
|
var DF105CFA89562196E702912B3818C6A5B46E80D262442FDF29976621E5AF0D23 = !{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)};
|
2015-03-03 22:35:35 +00:00
|
|
|
.panel.panel-info
|
|
|
|
.panel-heading.text-center Camper News
|
2015-03-05 10:21:26 +00:00
|
|
|
.panel-body
|
2015-06-01 22:30:43 +00:00
|
|
|
include news-nav
|
2015-03-05 23:20:49 +00:00
|
|
|
.spacer
|
2015-03-05 21:42:01 +00:00
|
|
|
if (page === 'hot')
|
2015-06-01 22:30:43 +00:00
|
|
|
include hot-stories
|
2015-03-05 21:42:01 +00:00
|
|
|
if (page === 'submit')
|
2015-03-08 00:48:57 +00:00
|
|
|
if (user)
|
2015-06-01 22:30:43 +00:00
|
|
|
include preliminary-submit
|
2015-03-08 00:48:57 +00:00
|
|
|
else
|
|
|
|
.spacer
|
|
|
|
.text-center
|
|
|
|
a.btn.btn-cta.signup-btn.btn-primary(href="/login") Sign in to post your story (it's free)
|
|
|
|
.spacer
|
2015-03-07 08:42:22 +00:00
|
|
|
if (page === 'storySubmission')
|
2015-06-01 22:30:43 +00:00
|
|
|
include submit-story
|
2015-03-07 09:26:49 +00:00
|
|
|
if (page === 'show')
|
2015-06-01 22:30:43 +00:00
|
|
|
include show
|