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

22 lines
750 B
Text

= 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
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)