aboutsummaryrefslogtreecommitdiff
path: root/mod/module.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-08-01 20:03:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-08-07 19:01:06 +0300
commit7db53790ca2d2c004bfd00b503eca59a8d084870 (patch)
tree5f6201d48322043e1f2802efddb28e5643a2dab7 /mod/module.cli
parentee220058d977738c02ead45cc5567bbab33adf48 (diff)
Add support for loading package version reviews
Diffstat (limited to 'mod/module.cli')
-rw-r--r--mod/module.cli21
1 files changed, 21 insertions, 0 deletions
diff --git a/mod/module.cli b/mod/module.cli
index 5133935..7b0c0d2 100644
--- a/mod/module.cli
+++ b/mod/module.cli
@@ -454,6 +454,25 @@ namespace brep
}
};
+ class package_version_metadata
+ {
+ string reviews-url
+ {
+ "<url>",
+ "The base URL for the reviews manifest files. If this option is
+ specified, then the review information is displayed on the package
+ version details page.
+
+ The complete URL is formed by adding the following path to the base:
+
+ \
+ <project>/<package>/<version>/reviews.manifest
+ \
+
+ Note that no separator is added between the base and this path."
+ }
+ };
+
class page
{
web::xhtml::fragment logo
@@ -530,6 +549,7 @@ namespace brep
search,
page,
repository_url,
+ package_version_metadata,
handler
{
};
@@ -538,6 +558,7 @@ namespace brep
build, build_db,
page,
repository_url,
+ package_version_metadata,
handler
{
dir_path bindist-root