diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-02 01:08:19 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-02 01:08:19 +0300 |
commit | cdff7527e453e352f90983b92c4d7a75d71ca249 (patch) | |
tree | 870d73ccdd2df747644d55c6106fcb90ccf00f80 /mod/mod-package-version-details.cxx | |
parent | 8b9dac2525ca0e096892a8cefea5bf59a61c6bde (diff) |
Reorder urls and emails on package details and version details pages
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r-- | mod/mod-package-version-details.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index 1186470..6007a80 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -171,7 +171,6 @@ 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") @@ -192,8 +191,7 @@ handle (request& rq, response& rs) << TABLE(CLASS="proplist", ID="package") << TBODY - << TR_URL (pkg->url) - << TR_EMAIL (em); + << TR_URL (pkg->url); if (pkg->doc_url) s << TR_URL (*pkg->doc_url, "doc-url"); @@ -205,6 +203,9 @@ handle (request& rq, response& rs) if (pu && *pu != pkg->url) s << TR_URL (*pu, "package-url"); + const email& em (pkg->email); + s << TR_EMAIL (em); + const auto& pe (pkg->package_email); if (pe && *pe != em) s << TR_EMAIL (*pe, "package-email"); |