Merge pull request #149 from tfausak/patch-1
Allow customizing entire badge label
This commit is contained in:
commit
0e46ca9964
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue