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
|
|
|
|
2024-05-03 22:59:29 +02:00
|
|
|
/ A lil disclaimer because people love to panic.
|
|
|
|
= if not vite_reload?() do
|
|
|
|
.flash.flash--special
|
|
|
|
.flash__icon
|
|
|
|
i.fa.fa-dragon
|
|
|
|
.flash__message
|
|
|
|
strong> Here be dragons!
|
|
|
|
' This is a work-in-progress branch of the site code. At current state, it is approximately
|
|
|
|
em> 40 percent
|
|
|
|
' finished. Everything is subject to change, and will probably be changed.
|
|
|
|
' Keep calm and don't freak out if something looks ugly/broken - it will be fixed.
|
|
|
|
a href="https://derpibooru.org/forums/meta/topics/so-you-found-the-redesign?post_id=5609737"
|
|
|
|
| Check out this topic for more info, the FAQ, and to yell at me about this.
|
|
|
|
|
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)
|