portails/layouts/shortcodes/alert.html

13 lines
411 B
HTML
Raw Normal View History

2020-11-04 08:26:58 +01:00
<div class="alert alert-warning d-flex" role="alert">
2021-04-15 11:47:33 +02:00
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}} {{ end }}</div>
{{ with .Get "text"}}
2021-04-20 08:19:52 +02:00
<div class="w-100">{{ . | safeHTML }} </div>
2021-04-15 11:47:33 +02:00
{{ else }}
{{ with .Inner}}
<div class="w-100"> {{ . | markdownify}}</div>
{{ else }}
{{ errorf "No valid text variable or Inner content given"}}
{{ end }}
{{ end}}
</div>