diff --git a/locales/en-US.json b/locales/en-US.json index 10887612..0d29a59a 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -163,6 +163,7 @@ "unsubscribe": "unsubscribe", "revoke": "revoke", "Subscriptions": "Subscriptions", + "History": "History", "subscriptions_unseen_notifs_count": "{{count}} unseen notification", "subscriptions_unseen_notifs_count_plural": "{{count}} unseen notifications", "search": "search", diff --git a/locales/es.json b/locales/es.json index 7a41710e..0d9f6e9c 100644 --- a/locales/es.json +++ b/locales/es.json @@ -116,6 +116,7 @@ "unsubscribe": "desuscribirse", "revoke": "revocar", "Subscriptions": "Suscripciones", + "History": "Historial", "search": "buscar", "Log out": "Cerrar la sesiĆ³n", "Released under the AGPLv3 on Github.": "Publicado bajo la AGPLv3 en GitHub.", diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 744b0b26..9f18d10c 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -30,7 +30,7 @@ struct ConfigPreferences property quality : String = "hd720" property quality_dash : String = "auto" property default_home : String? = "Popular" - property feed_menu : Array(String) = ["Popular", "Trending", "Subscriptions", "Playlists"] + property feed_menu : Array(String) = ["Popular", "Trending", "Subscriptions", "Playlists", "History"] property automatic_instance_redirect : Bool = false property region : String = "US" property related_videos : Bool = true diff --git a/src/invidious/routes/misc.cr b/src/invidious/routes/misc.cr index d6bd9571..e0fba265 100644 --- a/src/invidious/routes/misc.cr +++ b/src/invidious/routes/misc.cr @@ -23,6 +23,12 @@ module Invidious::Routes::Misc else env.redirect "/feed/popular" end + when "History" + if user + env.redirect "/feed/history" + else + env.redirect "/feed/popular" + end else templated "search_homepage", navbar_search: false end diff --git a/src/invidious/routes/preferences.cr b/src/invidious/routes/preferences.cr index 112535bd..232df4f2 100644 --- a/src/invidious/routes/preferences.cr +++ b/src/invidious/routes/preferences.cr @@ -99,7 +99,7 @@ module Invidious::Routes::PreferencesRoute default_home = env.params.body["default_home"]?.try &.as(String) || CONFIG.default_user_preferences.default_home feed_menu = [] of String - 4.times do |index| + 5.times do |index| option = env.params.body["feed_menu[#{index}]"]?.try &.as(String) || "" if !option.empty? feed_menu << option @@ -186,7 +186,7 @@ module Invidious::Routes::PreferencesRoute CONFIG.default_user_preferences.default_home = env.params.body["admin_default_home"]?.try &.as(String) || CONFIG.default_user_preferences.default_home admin_feed_menu = [] of String - 4.times do |index| + 5.times do |index| option = env.params.body["admin_feed_menu[#{index}]"]?.try &.as(String) || "" if !option.empty? admin_feed_menu << option diff --git a/src/invidious/views/user/login.ecr b/src/invidious/views/user/login.ecr index 2b03d280..9d41f0a7 100644 --- a/src/invidious/views/user/login.ecr +++ b/src/invidious/views/user/login.ecr @@ -68,6 +68,8 @@ <%= translate(locale, "Sign In") %>/<%= translate(locale, "Register") %> <% end %> +
Please, do not use your E-mail address!. If you lost your password there is no way to recover it using a Password Recovery E-mail. If you lose your password, your should contact the admin instead or just create a new account (If you don't care about your subscriptions, history and playlists.)
+<% end %> diff --git a/src/invidious/views/user/preferences.ecr b/src/invidious/views/user/preferences.ecr index 55349c5a..1e7b1e2f 100644 --- a/src/invidious/views/user/preferences.ecr +++ b/src/invidious/views/user/preferences.ecr @@ -165,7 +165,7 @@ <% if env.get?("user") %> - <% feed_options = {"", "Popular", "Trending", "Subscriptions", "Playlists"} %> + <% feed_options = {"", "Popular", "Trending", "Subscriptions", "Playlists", "History"} %> <% else %> <% feed_options = {"", "Popular", "Trending"} %> <% end %>