Show the file basename for a variant
This commit is contained in:
parent
7faee30a39
commit
9554b45f8a
@ -249,8 +249,8 @@ resultTable (Entity submissionId submission) = do
|
||||
$(widgetFile "result-table")
|
||||
|
||||
|
||||
submissionHeader :: FullSubmissionInfo -> WidgetFor App ()
|
||||
submissionHeader submission =
|
||||
submissionHeader :: FullSubmissionInfo -> Maybe Text -> WidgetFor App ()
|
||||
submissionHeader submission mVariantName =
|
||||
$(widgetFile "submission-header")
|
||||
where commitSha1AsText = fromSHA1ToText $ submissionCommit $ fsiSubmission submission
|
||||
submitter = formatSubmitter $ fsiUser submission
|
||||
|
@ -3,7 +3,7 @@
|
||||
<p class="media-object">
|
||||
<span class="glyphicon glyphicon-asterisk" aria-hidden="hidden">
|
||||
<div class="media-body">
|
||||
^{submissionHeader submission}
|
||||
^{submissionHeader submission Nothing}
|
||||
^{resultTable (Entity (fsiSubmissionId submission) (fsiSubmission submission))}
|
||||
|
||||
$if not (null (fsiSuperSubmissions submission))
|
||||
|
@ -26,3 +26,7 @@
|
||||
<a href="#{externalLinkUrl externalLink}">
|
||||
#{fromMaybe (externalLinkUrl externalLink) (externalLinkTitle externalLink)}
|
||||
<br>
|
||||
$maybe variant <- mVariantName
|
||||
<dt>file basename
|
||||
<dd><tt>#{variant}</tt>
|
||||
$nothing
|
||||
|
@ -3,7 +3,7 @@
|
||||
<p class="media-object">
|
||||
<span class="glyphicon glyphicon-asterisk" aria-hidden="hidden">
|
||||
<div class="media-body">
|
||||
^{submissionHeader fullSubmissionInfo}
|
||||
^{submissionHeader fullSubmissionInfo (Just $ variantName variant)}
|
||||
|
||||
$case tableEntryParams entry
|
||||
$of []
|
||||
|
Loading…
Reference in New Issue
Block a user