aboutsummaryrefslogtreecommitdiff
path: root/mod/page.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/page.hxx')
-rw-r--r--mod/page.hxx11
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.