gonito/templates/query-result.hamlet

30 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-02-12 13:00:33 +01:00
<div .subm-commit>#{commitSha1AsText}
2018-11-10 11:20:17 +01:00
<div .subm-description>^{fragmentWithTags (submissionDescription $ fsiSubmission submission) (map fst $ fsiTags submission)}
2018-11-03 21:54:16 +01:00
<p>&nbsp;</p>
<dl class="dl-horizontal">
2018-11-10 11:20:17 +01:00
<dt>challenge
<dd><a href="@{ShowChallengeR $ challengeName $ fsiChallenge submission}">#{challengeTitle $ fsiChallenge submission}</a>
2018-11-03 21:54:16 +01:00
<dt>submitter
<dd>#{submitter}
<dt>submitted
<dd>#{stamp}
<dt>original repo
<dd><code>#{repoUrl $ fsiRepo submission}</code> / branch <code>#{repoBranch $ fsiRepo submission}</code>
$if submissionIsPublic $ fsiSubmission submission
<dt>publicly available at
<dd><code>#{publicSubmissionRepo}</code> / branch <code>#{publicSubmissionBranch}</code>
<dt>browsable at
<dd><a href="#{browsableUrl}">#{browsableUrl}</a>
<dt>clone by
<dd><code>git clone --single-branch #{publicSubmissionRepo} -b #{publicSubmissionBranch}</code>
2018-11-12 20:41:46 +01:00
$if not (null (fsiExternalLinks submission))
<dt>see also
<dd>
$forall (Entity _ externalLink) <- fsiExternalLinks submission
<a href="#{externalLinkUrl externalLink}">
#{fromMaybe (externalLinkUrl externalLink) (externalLinkTitle externalLink)}
<br>
2018-11-12 14:12:51 +01:00
^{resultTable (Entity (fsiSubmissionId submission) (fsiSubmission submission))}
2016-02-12 13:00:33 +01:00
<hr>