This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/templates/submission.hamlet
2020-06-27 15:39:16 +02:00

46 lines
1.1 KiB
Plaintext

$newline never
$maybe cID <- mcid
$maybe wdgt <- correctionWdgt
<section>
<h2>_{MsgRating}
^{wdgt}
<section>
$case sheetSubmissionMode
$of SubmissionMode False Nothing
<p>
_{MsgSubmissionNoUploadExpected}
$of _
<h2>
$if filesCorrected
_{MsgSubmissionFilesCorrected}
$else
_{MsgSubmissionFiles}
<p>
$if showCorrection
<a href=@{urlArchive cID}>_{MsgSubmissionArchiveCorrected}
\ (
<a href=@{urlOriginal cID}>_{MsgSubmissionOriginal}
)
$else
<a href=@{urlOriginal cID}>_{MsgSubmissionArchive}
$maybe fileTable <- mFileTable
^{fileTable}
$if maySubmit && not (null lastEdits)
<h3>_{MsgLastEdits}
<ul>
$forall (mbName,time) <- lastEdits
$maybe name <- mbName
<li>_{MsgEditedBy name time}
$nothing
<li>#{time}
$if maySubmit
<section>
<h2>_{MsgSubmissionReplace}
^{formWidget}
$nothing
^{formWidget}