gonito/templates/challenge.hamlet

23 lines
1.2 KiB
Plaintext

<div .row>
<div .col-md-1 role="complementary" style="z-index:1;">
<ul class="nav nav-pills nav-stacked navbar-left">
<li role="presentation" class="active"><a href="@{ShowChallengeR (challengeName challenge)}">Challenge</a>
<li role="presentation"><a href="@{ChallengeReadmeR (challengeName challenge)}">Readme</a>
<li role="presentation"><a href="@{ChallengeHowToR (challengeName challenge)}">How To</a>
$if isJust maybeUser
<li role="presentation"><a href="@{ChallengeSubmissionR (challengeName challenge)}">Submit</a>
<li role="presentation"><a href="@{ChallengeMySubmissionsR (challengeName challenge)}">My entries</a>
<li role="presentation"><a href="@{ChallengeAllSubmissionsR (challengeName challenge)}">All entries</a>
<li role="presentation"><a href="@{ChallengeDiscussionR (challengeName challenge)}">Discussion</a>
<div .col-md-11 role="main">
<div class="panel panel-default">
<div class="panel-body">
$if withHeader
<h1>#{challengeTitle challenge}
<p>#{challengeDescription challenge}
$maybe deadline <- versionDeadline $ entityVal version
<p>Deadline: #{show deadline}
$nothing
^{pageBody bc}