From a904773babab29b9e24d40cf183b8a7a1ee92f0e Mon Sep 17 00:00:00 2001 From: Diana Date: Tue, 15 Oct 2024 16:06:49 -0500 Subject: [PATCH] Badge --- template/components/content_badge.go | 7 +++++++ template/components/content_badge.html | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 template/components/content_badge.go create mode 100644 template/components/content_badge.html diff --git a/template/components/content_badge.go b/template/components/content_badge.go new file mode 100644 index 0000000..7da7147 --- /dev/null +++ b/template/components/content_badge.go @@ -0,0 +1,7 @@ +package components + +type ContentBadge struct { + Text string + TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, (default secondary) + IsOutline bool +} diff --git a/template/components/content_badge.html b/template/components/content_badge.html new file mode 100644 index 0000000..6f72cf7 --- /dev/null +++ b/template/components/content_badge.html @@ -0,0 +1,7 @@ +{{define "content_badge"}} + {{.Text}} +{{end}} \ No newline at end of file