mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Merge pull request #149 from tfausak/patch-1
Allow customizing entire badge label
This commit is contained in:
commit
0e46ca9964
@ -51,7 +51,7 @@ renderStackageBadge style mLabel snapName = \case
|
||||
Nothing -> renderBadge (style & right .~ lightgray) badgeLabel "not available"
|
||||
Just (Version x) -> renderBadge style badgeLabel x
|
||||
where
|
||||
badgeLabel = fromMaybe "stackage" mLabel <> " " <> badgeSnapName snapName
|
||||
badgeLabel = fromMaybe ("stackage " <> badgeSnapName snapName) mLabel
|
||||
|
||||
badgeSnapName (SNNightly _) = "nightly"
|
||||
badgeSnapName (SNLts x _) = "lts-" <> tshow x
|
||||
|
||||
Loading…
Reference in New Issue
Block a user