Update label syntax #1914
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "better-badges"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completely changes badges, so now I have to go through and swap them all out.
New syntax will in theory look like:
Instead of the old syntax (for comparison)
Color: optional, defaults to info
Link: optional external link
Text:
requiredactually this should be optional now, if we want icon-only badgesIcon: optional, defaults to
far fa-question-circle
for labels with tooltips,fas fa-external-link-alt
for links (without tooltips), and disabled for labels without tooltips or linksTooltip: optional, provides hover text
Separator between labels:
|
Separators between attributes:
::
(changed so that we can usehttps://
in a label despite it having a:
)Separator between attribute keys and values:
==
This PR also adds
badge.html
to_includes
, which can be used like this anywhere, so we can get the non-cardv2 badges switched as well.Had a good look in a local build at all pages.
I don't think you've missed anything that I could see.
I wonder if at some point we could use this in some way instead for warnings next to worth mentioning recommendations etc or should we do something like this?