feat: add contextual alert support

This commit is contained in:
Henk Verlinde
2022-01-17 16:38:16 +01:00
parent 1c1a4100ef
commit 9a9f37b3a2
5 changed files with 96 additions and 19 deletions

View File

@ -1,4 +1,4 @@
<div class="alert alert-warning d-flex" role="alert">
<div class="alert alert-{{ with .Get "context" }}{{.}}{{ else }}doks{{ end }} d-flex" role="alert">
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}} {{ end }}</div>
{{ with .Get "text"}}
<div class="w-100">{{ . | safeHTML }} </div>