add note to backend
This commit is contained in:
parent
895745934b
commit
b29f5b39de
2 changed files with 4 additions and 2 deletions
|
@ -82,6 +82,8 @@ class Config
|
||||||
|
|
||||||
@[YAML::Field(converter: Preferences::URIConverter)]
|
@[YAML::Field(converter: Preferences::URIConverter)]
|
||||||
property public_url : URI = URI.parse("")
|
property public_url : URI = URI.parse("")
|
||||||
|
|
||||||
|
property note : String = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
# Number of threads to use for crawling videos from channels (for updating subscriptions)
|
# Number of threads to use for crawling videos from channels (for updating subscriptions)
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
<% CONFIG.invidious_companion.each_with_index do | backend, index | %>
|
<% CONFIG.invidious_companion.each_with_index do | backend, index | %>
|
||||||
<% if current_backend == index %>
|
<% if current_backend == index %>
|
||||||
<a href="/switchbackend?backend_id=<%= index.to_s %>" style="text-decoration-line: underline; display: inline-block;">
|
<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:
|
<span style="color:
|
||||||
<% if status[index] == 0 %> #fd4848; <% end %>
|
<% if status[index] == 0 %> #fd4848; <% end %>
|
||||||
<% if status[index] == 1 %> #d06925; <% end %>
|
<% if status[index] == 1 %> #d06925; <% end %>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
">•</span>
|
">•</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="/switchbackend?backend_id=<%= index.to_s %>" style="display: inline-block;">
|
<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:
|
<span style="color:
|
||||||
<% if status[index] == 0 %> #fd4848; <% end %>
|
<% if status[index] == 0 %> #fd4848; <% end %>
|
||||||
<% if status[index] == 1 %> #d06925; <% end %>
|
<% if status[index] == 1 %> #d06925; <% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue