aboutsummaryrefslogtreecommitdiff
path: root/mod/page
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-05-04 17:26:31 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-05-06 15:18:18 +0200
commit3f7d602fd4e56c9b20a2ee8769ecd4cf69e6b696 (patch)
tree55d38a3118f6397de2c553505b0eaeaed28871da /mod/page
parentd2cef486101075942746f58a7fdbc31eb707553d (diff)
Add repository location to package version details and repository details pages
Diffstat (limited to 'mod/page')
-rw-r--r--mod/page20
1 files changed, 17 insertions, 3 deletions
diff --git a/mod/page b/mod/page
index b326d6c..a01307c 100644
--- a/mod/page
+++ b/mod/page
@@ -264,12 +264,12 @@ namespace brep
const priority& priority_;
};
- // Generates package location element.
+ // Generates repository name element.
//
- class TR_LOCATION
+ class TR_REPOSITORY
{
public:
- TR_LOCATION (const string& n, const dir_path& r)
+ TR_REPOSITORY (const string& n, const dir_path& r)
: name_ (n), root_ (r) {}
void
@@ -280,6 +280,20 @@ namespace brep
const dir_path& root_;
};
+ // Generates repository location element.
+ //
+ class TR_LOCATION
+ {
+ public:
+ TR_LOCATION (const repository_location& l): location_ (l) {}
+
+ void
+ operator() (xml::serializer&) const;
+
+ private:
+ const repository_location& location_;
+ };
+
// Generates package download URL element.
//
class TR_DOWNLOAD