From d63e34a7e8612dc69ae25f3d3903ba04cc808bf7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 8 Sep 2018 17:46:57 +0300 Subject: Add support for root global and tenant views --- mod/options.cli | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'mod/options.cli') diff --git a/mod/options.cli b/mod/options.cli index 619df66..12f577c 100644 --- a/mod/options.cli +++ b/mod/options.cli @@ -311,7 +311,8 @@ namespace brep // Handler options. // - class package_search: search, package_db, page, handler + + class packages: search, package_db, page, handler { string search-title = "Packages" { @@ -532,6 +533,21 @@ namespace brep class repository_root: handler { + string root-global-view = "packages" + { + "", + "The default view to display for the global repository root. The + argument is one of the supported services (\c{packages}, + \c{builds}, \c{submit}, \c{ci}, etc)." + } + + string root-tenant-view = "packages" + { + "" + "The default view to display for the tenant repository root. The + argument is one of the supported services (\c{packages}, + \c{builds}, \c{submit}, \c{ci}, etc)." + } }; } @@ -542,7 +558,7 @@ namespace brep // Use parameters long names in the C++ code, short aliases (if present) // in HTTP URL. // - class package_search + class packages { // Display package search result list starting from this page. // @@ -550,7 +566,10 @@ namespace brep // Package search criteria. // - string query | q; + // Note that the packages parameter is renamed to '_' by the root + // handler (see the request_proxy class for details). + // + string q | _; }; class package_details -- cgit v1.1