Add an optionally-displayable "Terms and Conditions" link.
This commit is contained in:
parent
e7b02b170e
commit
9e80113089
7 changed files with 17 additions and 4 deletions
|
@ -19,6 +19,7 @@ FRONTEND_DIR = None
|
|||
FRONTEND_CONFIG = {
|
||||
"imprintUrl": "https://example.com/imprint",
|
||||
"privacyPolicyUrl": "https://example.com/privacy",
|
||||
# "termsUrl": "https://example.com/terms", # Link is only shown when set
|
||||
"mapHome": {"zoom": 6, "longitude": 10.2, "latitude": 51.3},
|
||||
# "banner": {"text": "This is a development installation.", "style": "info"},
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ FRONTEND_DIR = "../frontend/build/"
|
|||
FRONTEND_CONFIG = {
|
||||
"imprintUrl": "https://example.com/imprint",
|
||||
"privacyPolicyUrl": "https://example.com/privacy",
|
||||
# "termsUrl": "https://example.com/user_terms_and_conditions", # Link is only shown when set
|
||||
"mapHome": {"zoom": 6, "longitude": 10.2, "latitude": 51.3},
|
||||
"banner": {"text": "This is a test installation.", "style": "warning"},
|
||||
}
|
||||
|
|
|
@ -219,6 +219,13 @@ const App = connect((state) => ({login: state.login}))(function App({login}) {
|
|||
{t('App.footer.imprint')}
|
||||
</a>
|
||||
</List.Item>
|
||||
{ config?.termsUrl &&
|
||||
<List.Item>
|
||||
<a href={config?.termsUrl} target="_blank" rel="noreferrer">
|
||||
{t('App.footer.terms')}
|
||||
</a>
|
||||
</List.Item>
|
||||
}
|
||||
<List.Item>
|
||||
<a
|
||||
href={`https://github.com/openbikesensor/portal${
|
||||
|
|
|
@ -17,6 +17,7 @@ export interface Config {
|
|||
obsMapSource?: MapSource;
|
||||
imprintUrl?: string;
|
||||
privacyPolicyUrl?: string;
|
||||
termsUrl?: string;
|
||||
banner?: {
|
||||
text: string;
|
||||
style?: "warning" | "info";
|
||||
|
|
|
@ -29,6 +29,7 @@ App:
|
|||
|
||||
thisInstallation: Diese Installation
|
||||
privacyPolicy: Datenschutz
|
||||
terms: Nutzungsbedingungen
|
||||
imprint: Impressum
|
||||
version: Version v{{apiVersion}}
|
||||
versionLoading: Version lädt...
|
||||
|
|
|
@ -34,6 +34,7 @@ App:
|
|||
|
||||
thisInstallation: This installation
|
||||
privacyPolicy: Privacy policy
|
||||
terms: Terms and Conditions
|
||||
imprint: Imprint
|
||||
version: Version v{{apiVersion}}
|
||||
versionLoading: Fetching version...
|
||||
|
|
|
@ -34,6 +34,7 @@ App:
|
|||
|
||||
thisInstallation: Cette installation
|
||||
privacyPolicy: Politique de confidentialité
|
||||
terms: Modalités d'utilisation
|
||||
imprint: Impression
|
||||
version: Version v{{apiVersion}}
|
||||
versionLoading: Téléchargement de la version...
|
||||
|
|
Loading…
Add table
Reference in a new issue