diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-28 19:48:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-29 15:33:03 +0300 |
commit | d0e23f3ff61e9fe1f790dac0c6fc0873777d0f86 (patch) | |
tree | 6573c1d96989d966aaf8472efbfeac94666fd07b /mod/page.hxx | |
parent | 3ff2e95c6bd0a6692d5631acd8db66f6c604fdda (diff) |
Add some page style improvements
Diffstat (limited to 'mod/page.hxx')
-rw-r--r-- | mod/page.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/page.hxx b/mod/page.hxx index 28257c1..cd2048e 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -384,7 +384,7 @@ namespace brep const requirements& requirements_; }; - // Generate url element. + // Generate url element. Strip the `<scheme>://` prefix from the link text. // class TR_URL { @@ -460,18 +460,21 @@ namespace brep const repository_location& location_; }; - // Generate package download URL element. + // Generate link element. // - class TR_DOWNLOAD + class TR_LINK { public: - TR_DOWNLOAD (const string& u): url_ (u) {} + TR_LINK (const string& u, const string& t, const char* l) + : url_ (u), text_ (t), label_ (l) {} void operator() (xml::serializer&) const; private: const string& url_; + const string& text_; + const char* label_; }; // Generate sha256sum element. |