mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-23 09:21:56 +01:00
Merge pull request #312 from fpco/311-less-snapshots
Try showing less snapshots #311
This commit is contained in:
commit
041255cc29
2
.github/workflows/runtime.yml
vendored
2
.github/workflows/runtime.yml
vendored
@ -2,7 +2,7 @@ name: Runtime image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master, bench]
|
branches: [master, bench, 311-less-snapshots]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@ -157,7 +157,7 @@ getPackageSnapshotsR :: PackageNameP -> Handler Html
|
|||||||
getPackageSnapshotsR pn =
|
getPackageSnapshotsR pn =
|
||||||
track "Handler.Package.getPackageSnapshotsR" $ do
|
track "Handler.Package.getPackageSnapshotsR" $ do
|
||||||
cacheSeconds $ 60 * 60 * 24
|
cacheSeconds $ 60 * 60 * 24
|
||||||
snapshots <- getSnapshotsForPackage pn Nothing
|
snapshots <- getSnapshotsForPackage pn (Just 50)
|
||||||
defaultLayout
|
defaultLayout
|
||||||
(do setTitle ("Packages for " >> toHtml pn)
|
(do setTitle ("Packages for " >> toHtml pn)
|
||||||
$(combineStylesheets 'StaticR [css_font_awesome_min_css])
|
$(combineStylesheets 'StaticR [css_font_awesome_min_css])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user