aboutsummaryrefslogtreecommitdiff
path: root/mod/page.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-13 19:27:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-14 13:55:17 +0300
commit1367aa09951e0aa7491bc2a5bf7209b0b47be65e (patch)
tree8e4ffe92d9d7107d712f7096a7eb78872617efca /mod/page.hxx
parentda39917917f03bd709eb7807cc5d900ddeb1e48c (diff)
Add support for packages and builds global views
Diffstat (limited to 'mod/page.hxx')
-rw-r--r--mod/page.hxx23
1 files changed, 23 insertions, 0 deletions
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<pair<string, string>>& 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.
//