Extracted CSS out of no_search_results.html

This commit is contained in:
Veloman Yunkan committed 2022-03-18 15:46:54 +04:00
1 parent 389d29c92e
commit e4a4b2f961
4 files changed
+89 -89

No files matched your search

+1
View File
@@ -517,6 +517,7 @@ std::unique_ptr<Response> InternalServer::handle_search(const RequestContext& re
|| (patternString.empty() && ! has_geo_query) ) {
auto data = get_default_data();
data.set("pattern", encodeDiples(patternString));
data.set("root", m_root);
auto response = ContentResponse::build(*this, RESOURCE::templates::no_search_result_html, data, "text/html; charset=utf-8");
response->set_taskbar(bookName, archive ? getArchiveTitle(*archive) : "");
response->set_code(MHD_HTTP_NOT_FOUND);