mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-21 16:31:56 +01:00
parent
de9e250b4e
commit
d2caecd432
@ -51,7 +51,7 @@ renderStackageBadge style mLabel snapName = \case
|
|||||||
Nothing -> renderBadge (style & right .~ lightgray) badgeLabel "not available"
|
Nothing -> renderBadge (style & right .~ lightgray) badgeLabel "not available"
|
||||||
Just (Version x) -> renderBadge style badgeLabel x
|
Just (Version x) -> renderBadge style badgeLabel x
|
||||||
where
|
where
|
||||||
badgeLabel = fromMaybe "stackage" mLabel <> " " <> badgeSnapName snapName
|
badgeLabel = fromMaybe ("stackage " <> badgeSnapName snapName) mLabel
|
||||||
|
|
||||||
badgeSnapName (SNNightly _) = "nightly"
|
badgeSnapName (SNNightly _) = "nightly"
|
||||||
badgeSnapName (SNLts x _) = "lts-" <> tshow x
|
badgeSnapName (SNLts x _) = "lts-" <> tshow x
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user