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.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/mod-package-details.cxx b/mod/mod-package-details.cxx
index 1fb51da..15a4115 100644
--- a/mod/mod-package-details.cxx
+++ b/mod/mod-package-details.cxx
@@ -270,8 +270,16 @@ handle (request& rq, response& rs)
//
s << TR_REPOSITORY (rl, root, tenant)
<< TR_DEPENDS (p->dependencies, root, tenant)
- << TR_REQUIRES (p->requirements)
- << ~TBODY
+ << TR_REQUIRES (p->requirements);
+
+ if (options_->reviews_url_specified ())
+ {
+ package_db_->load (*p, p->reviews_section);
+
+ s << TR_REVIEWS_SUMMARY (p->reviews, options_->reviews_url ());
+ }
+
+ s << ~TBODY
<< ~TABLE;
}
s << ~DIV;