philomena/lib/philomena_web/templates/layout/_flash_warnings.html.slime
2023-11-23 17:07:49 +01:00

44 lines
1.1 KiB
Text

= for notice <- @conn.assigns.site_notices do
.flash.flash--purple
.flash__icon
i.fa.fa-info-circle
.flash__message
strong>
= notice.title
=> notice.text
= if notice.link not in [nil, ""] do
a href=notice.link
= notice.link_text
noscript.flash.flash--warning
.flash__icon
i.fa.fa-check
.flash__message
strong You don't appear to have Javascript enabled
' If you're using an add-on like NoScript, please allow
=> cdn_host()
' for the site to work properly.
= if get_flash(@conn, :info) do
.flash.flash--success
.flash__icon
i.fa.fa-check
.flash__message
= get_flash(@conn, :info)
= if get_flash(@conn, :alert) do
.flash.flash--information
.flash__icon
i.fa.fa-info-circle
.flash__message
= get_flash(@conn, :alert)
= if get_flash(@conn, :error) do
.flash.flash--danger
.flash__icon
i.fa.fa-exclamation-triangle
.flash__message
= get_flash(@conn, :error)
= if get_flash(@conn, :warning) do
.flash.flash--warning
.flash__icon
i.fa.fa-exclamation-circle
.flash__message
= get_flash(@conn, :warning)