From b29f5b39debf9eee2e05d9c17e0dbd8dd1b5f394 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 31 Mar 2025 00:04:52 -0300 Subject: [PATCH] add note to backend --- src/invidious/config.cr | 2 ++ src/invidious/views/template.ecr | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/invidious/config.cr b/src/invidious/config.cr index b1f90cb7..93444fa5 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -82,6 +82,8 @@ class Config @[YAML::Field(converter: Preferences::URIConverter)] property public_url : URI = URI.parse("") + + property note : String = "" end # Number of threads to use for crawling videos from channels (for updating subscriptions) diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index a28e2e90..d934d892 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -117,7 +117,7 @@ <% CONFIG.invidious_companion.each_with_index do | backend, index | %> <% if current_backend == index %> - Backend<%= HTML.escape((index+1).to_s) %> + Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %> <% else %> - Backend<%= HTML.escape((index+1).to_s) %> + Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %>