From 0f487dc150ef6aa42ac4bd00edff9a02718798fe Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 4 May 2016 17:26:31 +0300 Subject: Add repository location to package version details and repository details pages --- mod/mod-package-version-details.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mod/mod-package-version-details.cxx') 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 -- cgit v1.1