Skip to content

Commit 9fce280

Browse files
author
Thomas Hanke
committed
added legal notice url link in footer
1 parent 898f7ac commit 9fce280

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ To install ckanext-matolabtheme:
6060
```bash
6161
CKANINI__CKANEXT__MATOLABTHEME__CONTACT_URL=<url to contact site>
6262
CKANINI__CKANEXT__MATOLABTHEME__LEGAL_PERSON_MD=<Legal Body Address in Markdown>
63+
CKANINI__CKANEXT__MATOLABTHEME__LEGAL_NOTICE_URL=<Url to your legal notice information>
6364
CKANINI__CKANEXT__MATOLABTHEME__DSVGO_CONTACT_MD=<Contact to adress with dsvgo conflicts in markdown>
6465
CKANINI__CKANEXT__MATOLABTHEME__CONTACT_DP_COMMISSIONER_EMAIL_MD="[[email protected]](mailto:[email protected]?subject=dataprotection ${CKAN_HOST})"
6566
CKANINI__CKAN__FAVICON=/img/favicon.png
@@ -68,6 +69,7 @@ or ckan.ini parameters.
6869
```bash
6970
ckan.matolabtheme.contact_url = <url to contact site>
7071
ckan.matolabtheme.legal_person_md = <Legal Body Address in Markdown>
72+
ckan.matolabtheme.legal_notice_url = <Url to your legal notice information>
7173
ckan.matolabtheme.dsvgo_contact_md = <Contact to adress with dsvgo conflicts in markdown>
7274
ckan.matolabtheme.dsvgo_contact_md = "[[email protected]](mailto:[email protected]?subject=dataprotection]"
7375
ckan.favicon = /img/favicon.png

ckanext/matolabtheme/i18n/ckanext-matolabtheme.pot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: ckanext-matolabtheme 0.0.1\n"
1111
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12-
"POT-Creation-Date: 2025-05-19 09:16+0000\n"
12+
"POT-Creation-Date: 2025-05-19 09:58+0000\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -50,6 +50,10 @@ msgstr ""
5050
msgid "Contact Us"
5151
msgstr ""
5252

53+
#: ckanext/matolabtheme/templates/footer.html:42
54+
msgid "Legal Notice"
55+
msgstr ""
56+
5357
#: ckanext/matolabtheme/templates/header.html:41
5458
#: ckanext/matolabtheme/templates/home/snippets/promoted.html:36
5559
msgid "Search"
139 Bytes
Binary file not shown.

ckanext/matolabtheme/i18n/de/LC_MESSAGES/ckanext-matolabtheme.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: ckanext-matolabtheme 0.0.1\n"
1111
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12-
"POT-Creation-Date: 2025-05-19 09:16+0000\n"
12+
"POT-Creation-Date: 2025-05-19 09:58+0000\n"
1313
"PO-Revision-Date: 2025-02-10 09:30+0000\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language: de\n"
@@ -52,6 +52,10 @@ msgstr "Bereitgestellt von"
5252
msgid "Contact Us"
5353
msgstr "Kontakt"
5454

55+
#: ckanext/matolabtheme/templates/footer.html:42
56+
msgid "Legal Notice"
57+
msgstr "Impressum"
58+
5559
#: ckanext/matolabtheme/templates/header.html:41
5660
#: ckanext/matolabtheme/templates/home/snippets/promoted.html:36
5761
msgid "Search"
@@ -493,6 +497,9 @@ msgid ""
493497
"Legal basis: The legal basis for processing of this data is Art. 6 par. 1"
494498
" (b) GDPR."
495499
msgstr ""
500+
"Rechtsgrundlage: Die Rechtsgrundlage für die Verarbeitung dieser Daten "
501+
"ist Art. 6 Abs. 1 lit. b DS-GVO."
502+
496503

497504
#: ckanext/matolabtheme/templates/matolabtheme/dataprivacy.html:86
498505
msgid ""
@@ -676,7 +683,7 @@ msgstr "Stand:"
676683

677684
#: ckanext/matolabtheme/templates/matolabtheme/theme_config.html:16
678685
msgid "Enable Dark Mode"
679-
msgstr ""
686+
msgstr "Dark Mode einschalten"
680687

681688
#: ckanext/matolabtheme/templates/matolabtheme/theme_config.html:21
682689
msgid "Banner Top"

ckanext/matolabtheme/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def declare_config_options(self, declaration: Declaration, key: Key):
3030
group = key.ckanext.matolabtheme
3131
declaration.declare(group.contact_url, "https://github.com/Mat-O-Lab")
3232
declaration.declare(
33-
group.legal_person_md, "legal person name, street number, Zip city, country"
33+
group.legal_notice_url, "/legal_notice.html"
3434
)
3535
declaration.declare(
3636
group.contact_dp_commissioner_email_md,

ckanext/matolabtheme/templates/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<div class="row mtb-2 justify-content-end">
4040
<div class="col text-end">
4141
<a class="btn bsb-btn-2xl btn-outline-light" href="{{ h.contact_url() }}" role="button">{{ _('Contact Us')}}</a>
42+
<a class="btn bsb-btn-2xl btn-outline-light" href="{{config.get('ckanext.matolabtheme.legal_notice_url')}}">{{ _('Legal Notice') }}</a>
4243
</div>
4344
</div>
4445
<!-- <div class="d-grid gap-2 d-sm-flex justify-content-sm-center">

0 commit comments

Comments
 (0)