diff --git a/locales/ar.json b/locales/ar.json index 4f43675f..6e0fef9f 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -102,6 +102,7 @@ "Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.", "Source available here.": "الأكواد متوفرة هنا.", "View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.", + "View privacy policy.": "", "Trending": "الشائع", "Watch video on Youtube": "مشاهدة الفيديو على اليوتيوب", "Genre: ": "النوع: ", diff --git a/locales/de.json b/locales/de.json index d66ebee3..578a73d3 100644 --- a/locales/de.json +++ b/locales/de.json @@ -102,6 +102,7 @@ "Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.", "Source available here.": "Quellcode verfügbar hier.", "View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.", + "View privacy policy.": "", "Trending": "Trending", "Watch video on Youtube": "Video auf YouTube ansehen", "Genre: ": "Genre: ", diff --git a/locales/en-US.json b/locales/en-US.json index 6a05d1bb..4e919ad1 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.", "Source available here.": "Source available here.", "View JavaScript license information.": "View JavaScript license information.", + "View privacy policy.": "View privacy policy.", "Trending": "Trending", "Watch video on Youtube": "Watch video on Youtube", "Genre: ": "Genre: ", diff --git a/locales/eu.json b/locales/eu.json index 1e4ad1d4..6bbd73be 100644 --- a/locales/eu.json +++ b/locales/eu.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "", "Source available here.": "", "View JavaScript license information.": "", + "View privacy policy.": "", "Trending": "", "Watch video on Youtube": "", "Genre: ": "", diff --git a/locales/fr.json b/locales/fr.json index 28f0b579..a459697d 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.", "Source available here.": "Code Source.", "View JavaScript license information.": "Voir les informations des licences JavaScript.", + "View privacy policy.": "", "Trending": "Tendances", "Watch video on Youtube": "Voir la vidéo sur Youtube", "Genre: ": "Genre : ", diff --git a/locales/it.json b/locales/it.json index 42dabf6d..e813c3bd 100644 --- a/locales/it.json +++ b/locales/it.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.", "Source available here.": "Codice sorgente.", "View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.", + "View privacy policy.": "", "Trending": "Tendenze", "Watch video on Youtube": "Guarda il video su YouTube", "Genre: ": "Genere: ", diff --git a/locales/nb_NO.json b/locales/nb_NO.json index f0f544b5..97812829 100644 --- a/locales/nb_NO.json +++ b/locales/nb_NO.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.", "Source available here.": "Kildekode tilgjengelig her.", "View JavaScript license information.": "Vis JavaScript-lisensinfo.", + "View privacy policy.": "", "Trending": "Trendsettende", "Watch video on Youtube": "Vis video på YouTube", "Genre: ": "Sjanger: ", diff --git a/locales/nl.json b/locales/nl.json index b4ea3862..08df38db 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.", "Source available here.": "Bron beschikbaar hier.", "View JavaScript license information.": "Bekijk JavaScript licentie informatie.", + "View privacy policy.": "", "Trending": "Trending", "Watch video on Youtube": "Bekijk video op Youtube", "Genre: ": "Genre: ", diff --git a/locales/pl.json b/locales/pl.json index 0db43c51..f2cfaeee 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -100,6 +100,7 @@ "Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.", "Source available here.": "Kod źródłowy dostępny tutaj.", "View JavaScript license information.": "Wyświetl informację o licencji JavaScript.", + "View privacy policy.": "", "Trending": "Na czasie", "Watch video on Youtube": "Zobacz film na YouTube", "Genre: ": "Gatunek: ", diff --git a/locales/ru.json b/locales/ru.json index 222b693f..d6db76d9 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -102,6 +102,7 @@ "Released under the AGPLv3 by Omar Roth.": "Распространяется Omar Roth по AGPLv3.", "Source available here.": "Исходный код доступен здесь.", "View JavaScript license information.": "Посмотреть лицензии JavaScript кода.", + "View privacy policy.": "", "Trending": "В тренде", "Watch video on Youtube": "Смотреть на YouTube", "Genre: ": "Жанр: ", diff --git a/src/invidious.cr b/src/invidious.cr index 4fe018f9..1091b6ff 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -17,6 +17,7 @@ require "digest/md5" require "file_utils" require "kemal" +require "markdown" require "openssl/hmac" require "option_parser" require "pg" @@ -291,6 +292,11 @@ get "/" do |env| end end +get "/privacy" do |env| + locale = LOCALES[env.get("preferences").as(Preferences).locale]? + templated "privacy" +end + get "/licenses" do |env| locale = LOCALES[env.get("preferences").as(Preferences).locale]? rendered "licenses" diff --git a/src/invidious/views/privacy.ecr b/src/invidious/views/privacy.ecr new file mode 100644 index 00000000..63f99ab6 --- /dev/null +++ b/src/invidious/views/privacy.ecr @@ -0,0 +1,75 @@ +<% content_for "header" do %> +