diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-20 21:35:36 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-20 21:35:36 +0300 |
commit | c5fb199945a29cfaa48186f9168c3edaf742132b (patch) | |
tree | 7e41dcd12023ea8b0c0388aafd1409375a0f00ce | |
parent | cdb1a96ce61fd179911ac175d298decba26b5910 (diff) |
Make search page title configurable
-rw-r--r-- | mod/mod-package-search.cxx | 3 | ||||
-rw-r--r-- | mod/options.cli | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mod/mod-package-search.cxx b/mod/mod-package-search.cxx index 5654427..df9e3d1 100644 --- a/mod/mod-package-search.cxx +++ b/mod/mod-package-search.cxx @@ -86,6 +86,7 @@ handle (request& rq, response& rs) const size_t res_page (options_->search_results ()); const dir_path& root (options_->root ()); + const string& title (options_->search_title ()); params::package_search params; @@ -106,8 +107,6 @@ handle (request& rq, response& rs) ? "" : "?q=" + web::mime_url_encode (squery)); - - static const string title ("Packages"); xml::serializer s (rs.content (), title); s << HTML diff --git a/mod/options.cli b/mod/options.cli index ba8b37b..f422773 100644 --- a/mod/options.cli +++ b/mod/options.cli @@ -143,6 +143,12 @@ namespace brep // class package_search: search, db, page, module { + string search-title = "Packages" + { + "<text>", + "Package search page title. It is placed inside XHTML5 <title> + element." + } }; class package_details: package, search, db, page, module |