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