Fix page formatting issue

This commit is contained in:
Andrea Bedini 2023-05-15 15:06:46 +08:00
parent 64f1578369
commit 4f706f9bd9
2 changed files with 2 additions and 3 deletions

View File

@ -124,8 +124,6 @@ makeAllPackageVersionsPage currentTime outputDir packageVersions =
allPackageVersionsPageEntryTimestamp = fromMaybe currentTime pkgTimestamp,
allPackageVersionsPageEntryTimestampPosix = utcTimeToPOSIXSeconds (fromMaybe currentTime pkgTimestamp),
allPackageVersionsPageEntrySource = pkgVersionSource,
-- FIXME: this weirdly seems to not work (display a `Deprecated` badge on all package version page) ...
-- don't understand yet why! :/
allPackageVersionsPageEntryDeprecated = pkgVersionIsDeprecated
}
-- list of revisions

View File

@ -48,10 +48,11 @@
{{#AllPackageVersionsPageEntryPackage}}
<tr>
<td class="col-sm-2">
<a href="../package/{{allPackageVersionsPageEntryPkgId}}">{{allPackageVersionsPageEntryPkgId}}</a></td>
<a href="../package/{{allPackageVersionsPageEntryPkgId}}">{{allPackageVersionsPageEntryPkgId}}</a>
{{#allPackageVersionsPageEntryDeprecated}}
<span class="badge bg-danger">Deprecated</span>
{{/allPackageVersionsPageEntryDeprecated}}
</td>
<td class="col-sm-1">Version</td>
<td class="col-sm-3" data-order="{{allPackageVersionsPageEntryTimestampPosix}}">{{allPackageVersionsPageEntryTimestamp}}</td>
<td class="col-sm-6">