mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-28 05:57:58 +01:00
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
= for notice <- @conn.assigns.site_notices do
|
|
.flash.flash--special
|
|
.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)
|