From 581de7e14caeb79104702db4ce30d190b629059c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 Apr 2017 19:08:29 +0300 Subject: Add build-email value to package details page --- mod/mod-package-version-details.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index b0e6ead..d2bcf5b 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -160,6 +160,7 @@ handle (request& rq, response& rs) assert (pkg->location && pkg->sha256sum); + const email& em (pkg->email); const repository_location& rl (pkg->internal_repository.load ()->location); s << TABLE(CLASS="proplist", ID="version") @@ -181,16 +182,20 @@ handle (request& rq, response& rs) << TABLE(CLASS="proplist", ID="package") << TBODY << TR_URL (pkg->url) - << TR_EMAIL (pkg->email); + << TR_EMAIL (em); const auto& pu (pkg->package_url); if (pu && *pu != pkg->url) s << TR_URL (*pu, "pkg-url"); const auto& pe (pkg->package_email); - if (pe && *pe != pkg->email) + if (pe && *pe != em) s << TR_EMAIL (*pe, "pkg-email"); + const auto& be (pkg->build_email); + if (be && ((pe && *be != *pe) || (!pe && *be != em))) + s << TR_EMAIL (*be, "build-email"); + s << TR_TAGS (pkg->tags, root) << ~TBODY << ~TABLE; -- cgit v1.1