From 665057a9c4bb0d2ea5ca35d81cb1c22244fa7002 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 Aug 2016 00:50:08 +0300 Subject: Support stubs on package and package version details pages --- mod/page.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'mod/page.cxx') 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 -- cgit v1.1