Commit 54b03bb
committed
Add configurable legal pages (Impressum, Privacy, Terms) to template
Every page now shows Impressum, Privacy Policy and Terms of Use links in
the sidebar footer, and the GDPR consent banner links to the privacy
policy so consent and policy are tied together. Links default to the
official OpenMS pages and are overridable via a new "legal_links" object
in settings.json, so self-hosting forks can point them at their own legal
pages (an Impressum must name the actual operator).
- settings.json: add legal_links (impressum/privacy/terms) defaults
- common.py: add get_legal_links() (settings overrides merged over the
hardcoded OpenMS defaults, so older forks still inherit links) and
render the three links in the sidebar on every page
- captcha_.py: forward the privacy policy URL to the consent component
- gdpr_consent: set Klaro privacyPolicyUrl so the banner shows a working
privacy-policy link; rebuild dist/bundle.js
- README: document the legal_links override
- tests: cover get_legal_links default/override/fallback behavior
https://claude.ai/code/session_01WCamMNCunp9T2aScEKKUvx1 parent e9d162a commit 54b03bb
7 files changed
Lines changed: 223 additions & 5 deletions
File tree
- gdpr_consent
- dist
- src
- src/common
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
167 | 188 | | |
168 | 189 | | |
169 | 190 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
128 | 141 | | |
129 | 142 | | |
130 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments