diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-09-08 17:46:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-09-08 21:00:05 +0300 |
commit | d63e34a7e8612dc69ae25f3d3903ba04cc808bf7 (patch) | |
tree | a70540d6d7ec2b9ce72eae52d83ff35bcf150c1c /mod/page.hxx | |
parent | 70c1cdfd8f34472761fe5ec97f0713990c1b4f5b (diff) |
Add support for root global and tenant views
Diffstat (limited to 'mod/page.hxx')
-rw-r--r-- | mod/page.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/page.hxx b/mod/page.hxx index d3e10db..d9f4249 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -60,18 +60,20 @@ namespace brep const string& tenant_; }; - // Generates package search form element. + // Generates package search form element with the specified query input + // element name. // class FORM_SEARCH { public: - FORM_SEARCH (const string& q): query_ (q) {} + FORM_SEARCH (const string& q, const string& n): query_ (q), name_ (n) {} void operator() (xml::serializer&) const; private: const string& query_; + const string& name_; }; // Generates counter element. @@ -160,7 +162,8 @@ namespace brep const vector<pair<string, string>>& options_; }; - // Generates package name element. + // Generates package name element with an optional search criteria. The + // search string should be url-encoded, if specified. // class TR_NAME { @@ -169,14 +172,14 @@ namespace brep const string& q, const dir_path& r, const string& t) - : name_ (n), query_param_ (q), root_ (r), tenant_ (t) {} + : name_ (n), query_ (q), root_ (r), tenant_ (t) {} void operator() (xml::serializer&) const; private: const package_name& name_; - const string& query_param_; + const string& query_; const dir_path& root_; const string& tenant_; }; |