<% locale = env.get("preferences").as(Preferences).locale dark_mode = env.get("preferences").as(Preferences).dark_mode current_external_videoplayback_proxy = Invidious::HttpServer::Utils.get_external_proxy() %> <%= yield_content "header" %> -theme">
<% if CONFIG.invidious_companion.present? current_backend = env.get("current_companion").as(Int32) status = BackendInfo.get_status %>
Switch Backend: <% CONFIG.invidious_companion.each_with_index do | backend, index | %> <% if current_backend == index %> Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %> <% else %> Backend<%= HTML.escape((index+1).to_s) %> <%= HTML.escape(backend.note) %> <% end %> | <% end %>
<% end %> <% if CONFIG.banner %>

<%= CONFIG.banner %>

<% end %> <%= content %> <% if buffer_footer %> <% end %>
<% if env.get? "user" %> <% if CONFIG.enable_user_notifications %> <% end %> <% end %>