flashes.jsx 545 B

12345678910111213
  1. {{ define "flashes" -}}
  2. {{ if . }}
  3. <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">
  4. <span id="warning-emj">⚠️</span>
  5. <ul className="m-0">
  6. {{ range . }}
  7. <li>{{ . }}</li>
  8. {{ end }}
  9. </ul>
  10. <button type="button" className="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  11. </div>
  12. {{ end }}
  13. {{ end }}