diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 17:26:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 21:26:51 +0300 |
commit | 0f487dc150ef6aa42ac4bd00edff9a02718798fe (patch) | |
tree | d97c44d845b0c3ac06abcac72613b5ed5fb8ad1a /mod/page | |
parent | 907ba04425800ca5404c0b7c778dffe8fed38f2f (diff) |
Add repository location to package version details and repository details pages
Diffstat (limited to 'mod/page')
-rw-r--r-- | mod/page | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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 |