gonito/templates/challenge.hamlet

23 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-09-06 14:24:49 +02:00
<div .row>
<div .col-md-1 role="complementary" style="z-index:1;">
2015-09-06 14:24:49 +02:00
<ul class="nav nav-pills nav-stacked navbar-left">
2015-11-11 22:10:41 +01:00
<li role="presentation" class="active"><a href="@{ShowChallengeR (challengeName challenge)}">Challenge</a>
2015-09-06 14:24:49 +02:00
<li role="presentation"><a href="@{ChallengeReadmeR (challengeName challenge)}">Readme</a>
2015-11-11 22:10:41 +01:00
<li role="presentation"><a href="@{ChallengeHowToR (challengeName challenge)}">How To</a>
2016-05-03 12:29:56 +02:00
$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>
2016-05-03 08:46:10 +02:00
<li role="presentation"><a href="@{ChallengeDiscussionR (challengeName challenge)}">Discussion</a>
<div .col-md-11 role="main">
2015-09-06 14:24:49 +02:00
<div class="panel panel-default">
<div class="panel-body">
$if withHeader
<h1>#{challengeTitle challenge}
2019-12-13 22:29:41 +01:00
<p>#{challengeDescription challenge} [ver. #{versionFormatted}]
2021-02-08 18:12:02 +01:00
$maybe deadline <- versionDeadline $ entityVal theVersion
2019-09-24 22:52:25 +02:00
<p>Deadline: #{show deadline}
$nothing
2015-09-06 14:24:49 +02:00
^{pageBody bc}