gonito/templates/submission-header.hamlet

38 lines
1.7 KiB
Plaintext
Raw Normal View History

2019-11-29 22:10:48 +01:00
<div class="media-heading">
<div .subm-commit>#{commitSha1AsText}
2020-09-05 23:26:53 +02:00
<div .subm-description>^{fragmentWithTags (submissionDescription $ fsiSubmission $ current submission) (map fst $ fsiTags $ current submission)}
2019-11-29 22:10:48 +01:00
<p>&nbsp;</p>
<dl class="dl-horizontal">
<dt>challenge
2020-09-05 23:26:53 +02:00
<dd><a href="@{ShowChallengeR $ challengeName $ fsiChallenge $ current submission}">#{challengeTitle $ fsiChallenge $ current submission}</a>
2019-11-29 22:10:48 +01:00
<dt>submitter
<dd>#{submitter}
<dt>submitted
<dd>#{stamp}
2021-08-21 16:54:54 +02:00
$if showFullInfo
<dt>original repo
<dd>
$maybe (url, branchPart) <- getHttpLink (fsiRepo $ current submission)
<code><a href="#{url}">#{repoUrl $ fsiRepo $ current submission}</code></a> / branch <a href="#{url <> branchPart}"><code>#{repoBranch $ fsiRepo $ current submission}</code></a>
$nothing
<code>#{repoUrl $ fsiRepo $ current submission}</code> / branch <code>#{repoBranch $ fsiRepo $ current submission}</code>
2020-09-05 23:26:53 +02:00
$if submissionIsPublic $ fsiSubmission $ current submission
2019-11-29 22:10:48 +01:00
<dt>publicly available at
<dd><code>#{publicSubmissionRepo}</code> / branch <code>#{publicSubmissionBranch}</code>
<dt>browsable at
2020-09-05 23:26:53 +02:00
<dd><a href="#{current browsableUrl}">#{current browsableUrl}</a>
2019-11-29 22:10:48 +01:00
<dt>clone by
2020-09-05 23:26:53 +02:00
<dd><code>git clone --single-branch #{current publicSubmissionRepo} -b #{current publicSubmissionBranch}</code>
$if not (null (fsiExternalLinks $ current submission))
2019-11-29 22:10:48 +01:00
<dt>see also
<dd>
2020-09-05 23:26:53 +02:00
$forall (Entity _ externalLink) <- fsiExternalLinks $ current submission
2019-11-29 22:10:48 +01:00
<a href="#{externalLinkUrl externalLink}">
#{fromMaybe (externalLinkUrl externalLink) (externalLinkTitle externalLink)}
<br>
2020-09-05 23:26:53 +02:00
$maybe variant <- runDiff variantSettings mVariantName
2019-12-14 15:27:59 +01:00
<dt>file basename
<dd><tt>#{variant}</tt>
$nothing