add note to backend

This commit is contained in:
Fijxu 2025-03-31 00:04:52 -03:00
parent 895745934b
commit b29f5b39de
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -117,7 +117,7 @@
<% CONFIG.invidious_companion.each_with_index do | backend, index | %>
<% if current_backend == index %>
<a href="/switchbackend?backend_id=<%= index.to_s %>" style="text-decoration-line: underline; display: inline-block;">
Backend<%= HTML.escape((index+1).to_s) %>
Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %>
<span style="color:
<% if status[index] == 0 %> #fd4848; <% end %>
<% if status[index] == 1 %> #d06925; <% end %>
@ -125,7 +125,7 @@
">•</span>
<% else %>
<a href="/switchbackend?backend_id=<%= index.to_s %>" style="display: inline-block;">
Backend<%= HTML.escape((index+1).to_s) %>
Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %>
<span style="color:
<% if status[index] == 0 %> #fd4848; <% end %>
<% if status[index] == 1 %> #d06925; <% end %>