{{ define "flashes" -}} {{ if . }} <div className="alert alert-secondary d-flex align-items-center p-3 bg-warning bg-opacity-10 border border-warning rounded mb-4 alert-dismissible fade show"> <span id="warning-emj">⚠️</span> <ul className="m-0"> {{ range . }} <li>{{ . }}</li> {{ end }} </ul> <button type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> {{ end }} {{ end }}