Merge pull request #149 from tfausak/patch-1

Allow customizing entire badge label
This commit is contained in:
Michael Snoyman 2016-02-01 08:58:12 +02:00
commit 0e46ca9964

View file

@ -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