Fix revisions timestamp on package page

This commit is contained in:
Andrea Bedini 2023-03-03 18:48:14 +08:00
parent ae45f208a2
commit b5e4f43dd2
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ makePackageVersionPage outputDir PreparedPackageVersion {pkgId, pkgTimestamp, pk
renderMustache packageVersionPageTemplate $ renderMustache packageVersionPageTemplate $
object object
[ "pkgVersionSource" .= pkgVersionSource, [ "pkgVersionSource" .= pkgVersionSource,
"cabalFileRevisions" .= cabalFileRevisions, "cabalFileRevisions" .= map fst cabalFileRevisions,
"pkgDesc" .= jsonGenericPackageDescription pkgDesc, "pkgDesc" .= jsonGenericPackageDescription pkgDesc,
"pkgTimestamp" .= pkgTimestamp "pkgTimestamp" .= pkgTimestamp
] ]

View File

@ -55,7 +55,7 @@
<dt class="col-sm-3">Revisions</dt> <dt class="col-sm-3">Revisions</dt>
<dd class="col-sm-9"> <dd class="col-sm-9">
{{#cabalFileRevisions}} {{#cabalFileRevisions}}
<p>{{revisionTimestamp}}</p> <p>{{.}}</p>
{{/cabalFileRevisions}} {{/cabalFileRevisions}}
{{^cabalFileRevisions}} {{^cabalFileRevisions}}
<p>None</p> <p>None</p>