aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-05-04 17:26:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-05-04 21:26:51 +0300
commit0f487dc150ef6aa42ac4bd00edff9a02718798fe (patch)
treed97c44d845b0c3ac06abcac72613b5ed5fb8ad1a /mod/mod-package-version-details.cxx
parent907ba04425800ca5404c0b7c778dffe8fed38f2f (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.cxx8
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