From d0e23f3ff61e9fe1f790dac0c6fc0873777d0f86 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 May 2019 19:48:01 +0300 Subject: Add some page style improvements --- mod/page.hxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mod/page.hxx') 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 `://` 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. -- cgit v1.1