diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-13 10:45:24 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-03-13 13:09:27 +0300 |
commit | a03a2b613f5d36de5617c50e76cced95fda188ac (patch) | |
tree | 1cf01f2c16d64f0052dc1fab99490ef1b334a96b /mod/mod-packages.cxx | |
parent | 962c725f9fba6b7b4803f31dbcd497169b237f57 (diff) |
Add search-description configuration option
Diffstat (limited to 'mod/mod-packages.cxx')
-rw-r--r-- | mod/mod-packages.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/mod-packages.cxx b/mod/mod-packages.cxx index cee3806..914a841 100644 --- a/mod/mod-packages.cxx +++ b/mod/mod-packages.cxx @@ -136,6 +136,16 @@ handle (request& rq, response& rs) << DIV_HEADER (options_->logo (), options_->menu (), root, tenant) << DIV(ID="content"); + // On the first page print the search page description, if specified. + // + if (page == 0) + { + const web::xhtml::fragment& desc (options_->search_description ()); + + if (!desc.empty ()) + s << DIV(ID="search-description") << desc << ~DIV; + } + // If the tenant is empty then we are in the global view and will display // packages from all the public tenants. // |