Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gib Geld FSR
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FS Info TU Dortmund
Fachschaftsrat
Tools
Gib Geld FSR
Commits
092435a1
Verified
Commit
092435a1
authored
1 year ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
src/routes/+layout.svelte
+20
-0
20 additions, 0 deletions
src/routes/+layout.svelte
src/routes/+page.svelte
+1
-1
1 addition, 1 deletion
src/routes/+page.svelte
with
23 additions
and
1 deletion
README.md
+
2
−
0
View file @
092435a1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/routes/+layout.svelte
+
20
−
0
View file @
092435a1
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
src/routes/+page.svelte
+
1
−
1
View file @
092435a1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment