From 1367aa09951e0aa7491bc2a5bf7209b0b47be65e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 13 Sep 2018 19:27:00 +0300 Subject: Add support for packages and builds global views --- mod/page.hxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'mod/page.hxx') diff --git a/mod/page.hxx b/mod/page.hxx index d9f4249..4b59e7d 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -162,6 +162,29 @@ namespace brep const vector>& options_; }; + // Generates tenant id element. + // + // Displays a link to the service page for the specified tenant. + // + class TR_TENANT + { + public: + TR_TENANT (const string& n, + const string& s, + const dir_path& r, + const string& t) + : name_ (n), service_ (s), root_ (r), tenant_ (t) {} + + void + operator() (xml::serializer&) const; + + private: + const string& name_; + const string& service_; + const dir_path& root_; + const string& tenant_; + }; + // Generates package name element with an optional search criteria. The // search string should be url-encoded, if specified. // -- cgit v1.1