Add some toasts

This commit is contained in:
david 2024-11-12 23:55:00 +01:00
parent 84fc1d2d93
commit 934deddec4
10 changed files with 50 additions and 5 deletions

View file

@ -0,0 +1,8 @@
.toast class="#{alert ? "text-bg-danger" : ""}" role="alert" aria-live="assertive" aria-atomic="true" data={ controller: "toast" }
.toast-header
/img src="..." class="rounded me-2" alt="...">
/strong.me-auto = heading
.small.me-auto = l(Time.current.to_time)
button.btn-close type="button" data-bs-dismiss="toast" aria-label="Schliessen"
.toast-body
= content