aboutsummaryrefslogtreecommitdiff
path: root/mod/page.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-30 00:50:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-30 00:57:07 +0300
commit665057a9c4bb0d2ea5ca35d81cb1c22244fa7002 (patch)
tree35c9c6f50801a19ab4824647ab8921b9234f6003 /mod/page.cxx
parent321fa79e78c17bdb1e3e27f6e8b9d019201584a1 (diff)
Support stubs on package and package version details pages
Diffstat (limited to 'mod/page.cxx')
-rw-r--r--mod/page.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/page.cxx b/mod/page.cxx
index 79b5da5..aba7581 100644
--- a/mod/page.cxx
+++ b/mod/page.cxx
@@ -144,14 +144,23 @@ namespace brep
<< SPAN(CLASS="value");
if (package_ == nullptr)
+ {
s << version_;
+
+ if (stub_)
+ s << " (stub)";
+ }
else
{
assert (root_ != nullptr);
s << A(HREF=*root_ / dir_path (mime_url_encode (*package_)) /
path (version_))
- << version_
- << ~A;
+ << version_;
+
+ if (stub_)
+ s << " (stub)";
+
+ s << ~A;
}
s << ~SPAN