summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-24 15:05:01 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-16 01:20:38 +0100
commit7178de40ac9de75a8650213b22b1b94552c15f43 (patch)
treeed1c20f9081fb40978a5cfc4ec98c104b8e3dd0b
parent55b210158152cb631a57157728a61a086e95732f (diff)
Add support for a sidebar in the index.
-rw-r--r--src/lib/http_server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/http_server.cc b/src/lib/http_server.cc
index c6dcab953..23ac8241d 100644
--- a/src/lib/http_server.cc
+++ b/src/lib/http_server.cc
@@ -102,6 +102,7 @@ HTTPServer::get(string const& url)
if (url == "/") {
auto page = dcp::file_to_string(resources_path() / "web" / "index.html");
boost::algorithm::replace_all(page, "TITLE", variant::dcpomatic_player());
+ boost::algorithm::replace_all(page, "SIDEBAR", dcp::file_to_string(resources_path() / "web" / "sidebar.html"));
return Response(200, page);
} else if (url == "/playlists") {
auto page = dcp::file_to_string(resources_path() / "web" / "playlists.html");