aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-16 16:32:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-16 16:32:54 +0300
commitd70fd11d67e584003fabfb3fa86f7acd0533d8ce (patch)
tree36c196608d165a6c492763fb1a40daad665deccf /mod/mod-package-details.cxx
parent8f9a80a9ac8f353ce2cdafa23f0e5163d30d5800 (diff)
Strip package title from package description on package and version details pages
Diffstat (limited to 'mod/mod-package-details.cxx')
-rw-r--r--mod/mod-package-details.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/mod-package-details.cxx b/mod/mod-package-details.cxx
index fa073b5..5074eca 100644
--- a/mod/mod-package-details.cxx
+++ b/mod/mod-package-details.cxx
@@ -189,9 +189,15 @@ handle (request& rq, response& rs)
const string what (name.string () + " description");
s << (full
- ? DIV_TEXT (*d, *pkg->description_type, id, what, error)
+ ? DIV_TEXT (*d,
+ *pkg->description_type,
+ true /* strip_title */,
+ id,
+ what,
+ error)
: DIV_TEXT (*d,
*pkg->description_type,
+ true /* strip_title */,
options_->package_description (),
url (!full, squery, page, id),
id,