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

23 lines
748 B
Text
Raw Normal View History

2019-11-18 18:32:23 +01:00
= for notice <- @conn.assigns.site_notices do
.flash.flash--site-notice
strong>
= notice.title
=> notice.text
= if notice.link not in [nil, ""] do
a href=notice.link
= notice.link_text
2019-08-18 02:43:44 +02:00
noscript.flash.flash--warning
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 = get_flash(@conn, :info)
= if get_flash(@conn, :alert) do
.flash.flash--warning = get_flash(@conn, :alert)
= if get_flash(@conn, :error) do
.flash.flash--warning = get_flash(@conn, :error)
= if get_flash(@conn, :warning) do
.flash.flash--warning = get_flash(@conn, :warning)