diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 17:26:31 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-05-06 15:18:18 +0200 |
commit | 3f7d602fd4e56c9b20a2ee8769ecd4cf69e6b696 (patch) | |
tree | 55d38a3118f6397de2c553505b0eaeaed28871da /mod/mod-package-version-details.cxx | |
parent | d2cef486101075942746f58a7fdbc31eb707553d (diff) |
Add repository location to package version details and repository details pages
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r-- | mod/mod-package-version-details.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index 149c8f9..80a87ef 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -162,6 +162,8 @@ handle (request& rq, response& rs) assert (pkg->location && pkg->sha256sum); + const repository_location& rl (pkg->internal_repository.load ()->location); + s << TABLE(CLASS="proplist", ID="version") << TBODY @@ -171,9 +173,9 @@ handle (request& rq, response& rs) << TR_PRIORITY (pkg->priority) << TR_LICENSES (pkg->license_alternatives) - << TR_LOCATION (pkg->internal_repository.object_id (), root) - << TR_DOWNLOAD (pkg->internal_repository.load ()->location.string () + - "/" + pkg->location->string ()) + << TR_REPOSITORY (rl.canonical_name (), root) + << TR_LOCATION (rl) + << TR_DOWNLOAD (rl.string () + "/" + pkg->location->string ()) << TR_SHA256SUM (*pkg->sha256sum) << ~TBODY << ~TABLE |