From 09405c186fbcb500965fea27f232895c8240967b Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Wed, 17 Apr 2024 13:10:56 +0300 Subject: [PATCH] Hamlet fixups Fixes #325 --- templates/package-snapshots.hamlet | 24 +++++++++++++----------- templates/package.hamlet | 4 ++-- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/package-snapshots.hamlet b/templates/package-snapshots.hamlet index 015f89a..91985fc 100644 --- a/templates/package-snapshots.hamlet +++ b/templates/package-snapshots.hamlet @@ -1,18 +1,20 @@ -$newline never

Snapshots containing #{toHtml pn} -

Back to #{toHtml pn} +

Back to + #{toHtml pn} - - + $forall (compiler, spi) <- snapshots + +
- Package version - - Snapshot - $forall (compiler, spi) <- snapshots
- #{spiVersionRev spi} - - #{snapshotPrettyName (spiSnapName spi) compiler} + + Package version + + Snapshot +
+ #{spiVersionRev spi} + + #{snapshotPrettyName (spiSnapName spi) compiler} diff --git a/templates/package.hamlet b/templates/package.hamlet index 3ee3112..79dc2ce 100644 --- a/templates/package.hamlet +++ b/templates/package.hamlet @@ -120,7 +120,7 @@ $newline never $if (sppiForwardDepsCount sppi > 0)
Depends on #{renderNumPackages (sppiForwardDepsCount sppi)} - (full list with versions): + \(full list with versions):
$forall (i, (name, range)) <- enumerate (sppiForwardDeps sppi) $if i /= 0 @@ -132,7 +132,7 @@ $newline never $if (sppiReverseDepsCount sppi > 0)
Used by #{renderNumPackages (sppiReverseDepsCount sppi)} in #{spiSnapName spi} - (full list with versions): + \(full list with versions):
$forall (i, (name, range)) <- enumerate (sppiReverseDeps sppi) $if i /= 0