From 36297366fa4fcd11cef46990f1cfdaee10dded2e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 26 May 2022 16:48:58 -0400 Subject: [PATCH] Legal info dess (#666) * Add legal information (fixes #652) * add legal_info field to SiteForm, add missing file * Moving legal to SiteForm. Co-authored-by: Felix Ableitner --- lemmy-translations | 2 +- src/shared/components/app/footer.tsx | 7 ++++ src/shared/components/home/admin-settings.tsx | 2 +- src/shared/components/home/legal.tsx | 42 +++++++++++++++++++ src/shared/components/home/site-form.tsx | 20 +++++++++ src/shared/routes.ts | 2 + 6 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 src/shared/components/home/legal.tsx diff --git a/lemmy-translations b/lemmy-translations index 1cbac3a..29c689a 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 1cbac3a1521e26b9b5c1c97a0c9852655ddcf00b +Subproject commit 29c689af8d16417c1b84d9491f6bcea888720a87 diff --git a/src/shared/components/app/footer.tsx b/src/shared/components/app/footer.tsx index d4edd78..601551b 100644 --- a/src/shared/components/app/footer.tsx +++ b/src/shared/components/app/footer.tsx @@ -32,6 +32,13 @@ export class Footer extends Component { {i18n.t("modlog")} + {this.props.site.site_view?.site.legal_information && ( +
  • + + {i18n.t("legal_information")} + +
  • + )} {this.props.site.federated_instances && (