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-03 21:37:04 +0100
commit6689d21b71c4739bc81dc80d744aebf989baed4c (patch)
treef7ab7c985cd9ef1251d65de87306d0b553f54e27
parent671e0a492f0c2ebd9439a1a6da01667308a095f3 (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");