cc-backend/web/templates/message.tmpl

18 lines
621 B
Cheetah
Raw Normal View History

{{define "content"}}
<div class="row justify-content-center">
<div class="col-4">
<div class="alert {{.MsgType}} p-3 text-center fs-3" role="alert">
2023-06-23 09:42:31 +02:00
{{if eq .MsgType "alert-info"}}
<i class="bi-info-circle-fill me-3"></i>
2023-06-23 09:42:31 +02:00
{{else if eq .MsgType "alert-warning"}}
<i class="bi-question-circle-fill me-3"></i>
2023-06-23 09:42:31 +02:00
{{else if eq .MsgType "alert-danger"}}
<i class="bi-exclamation-circle-fill me-3"></i>
2023-06-23 09:42:31 +02:00
{{end}}
{{.Message}}
2023-06-23 09:03:36 +02:00
</div>
</div>
</div>
2023-06-23 09:42:31 +02:00
{{end}}