Skip to content
Snippets Groups Projects
Verified Commit 092435a1 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

feat: Add option to show custom notice banner text at top

parent f6900443
No related branches found
No related tags found
No related merge requests found
Pipeline #174918 passed with stages
in 1 minute and 33 seconds
......@@ -29,6 +29,8 @@ to get usable legal links in the apps footer.
This app does not persist any data, but needs internet access to fetch money sources and resolutions from fspages.org.
You can also set the `PUBLIC_NOTICE_BANNER_HTML` env var with a HTML notice, which will be shown in a yellow alert box at the top of the page.
---
## Developing
......
......@@ -28,6 +28,26 @@
Blödsinn!
</div>
</noscript>
{#if env.PUBLIC_NOTICE_BANNER_HTML}
<div class="alert alert-warning d-flex align-items-center my-5 py-4 px-4" role="alert">
<svg
xmlns="http://www.w3.org/2000/svg"
class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2"
viewBox="0 0 16 16"
width="16"
height="16"
role="img"
aria-label="Warning:"
>
<path
d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"
/>
</svg>
<div>{@html env.PUBLIC_NOTICE_BANNER_HTML}</div>
</div>
{/if}
<slot />
</main>
......
......@@ -92,7 +92,7 @@
}
</script>
<div class="alert alert-info" role="alert">
<div class="alert alert-light" role="alert">
<h4 class="alert-heading">Geld von der Fachschaft erstattet bekommen</h4>
<p>
Du hast für die Fachschaft Geld ausgegeben und möchtest es zurückbekommen? Dieses Formular hilft
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment