aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-package-details.cxx')
-rw-r--r--mod/mod-package-details.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/mod-package-details.cxx b/mod/mod-package-details.cxx
index a241c23..605022d 100644
--- a/mod/mod-package-details.cxx
+++ b/mod/mod-package-details.cxx
@@ -180,8 +180,15 @@ handle (request& rq, response& rs)
<< TBODY
<< TR_LICENSE (licenses)
<< TR_URL (pkg->url)
- << TR_EMAIL (pkg->email)
- << TR_TAGS (pkg->tags, root)
+ << TR_EMAIL (pkg->email);
+
+ if (pkg->doc_url)
+ s << TR_URL (*pkg->doc_url, "doc-url");
+
+ if (pkg->src_url)
+ s << TR_URL (*pkg->src_url, "src-url");
+
+ s << TR_TAGS (pkg->tags, root)
<< ~TBODY
<< ~TABLE;
}