philomena/lib/philomena_web/templates/layout/_flash_warnings.html.slime

45 lines
1.1 KiB
Text
Raw Normal View History

2019-11-18 18:32:23 +01:00
= for notice <- @conn.assigns.site_notices do
2024-04-30 09:25:23 +02:00
.flash.flash--special
2023-11-23 17:07:49 +01:00
.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
2019-11-18 18:32:23 +01:00
2019-08-18 02:43:44 +02:00
noscript.flash.flash--warning
2023-11-23 17:07:49 +01:00
.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.
2019-08-18 02:43:44 +02:00
= if get_flash(@conn, :info) do
2023-11-23 17:07:49 +01:00
.flash.flash--success
.flash__icon
i.fa.fa-check
.flash__message
= get_flash(@conn, :info)
2019-08-18 02:43:44 +02:00
= if get_flash(@conn, :alert) do
2023-11-23 17:07:49 +01:00
.flash.flash--information
.flash__icon
i.fa.fa-info-circle
.flash__message
= get_flash(@conn, :alert)
2019-08-18 02:43:44 +02:00
= if get_flash(@conn, :error) do
2023-11-23 17:07:49 +01:00
.flash.flash--danger
.flash__icon
i.fa.fa-exclamation-triangle
.flash__message
= get_flash(@conn, :error)
2019-08-18 02:43:44 +02:00
= if get_flash(@conn, :warning) do
2023-11-23 17:07:49 +01:00
.flash.flash--warning
.flash__icon
i.fa.fa-exclamation-circle
.flash__message
= get_flash(@conn, :warning)