aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-28 19:48:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-29 15:33:03 +0300
commitd0e23f3ff61e9fe1f790dac0c6fc0873777d0f86 (patch)
tree6573c1d96989d966aaf8472efbfeac94666fd07b /mod/mod-package-version-details.cxx
parent3ff2e95c6bd0a6692d5631acd8db66f6c604fdda (diff)
Add some page style improvements
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 437bff4..d147449 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -221,7 +221,9 @@ handle (request& rq, response& rs)
{
assert (pkg->location);
- s << TR_DOWNLOAD (rl.url ().string () + "/" + pkg->location->string ());
+ s << TR_LINK (rl.url ().string () + "/" + pkg->location->string (),
+ pkg->location->leaf ().string (),
+ "download");
}
if (pkg->fragment)
@@ -268,7 +270,7 @@ handle (request& rq, response& rs)
const auto& ds (pkg->dependencies);
if (!ds.empty ())
{
- s << H3 << "Depends" << ~H3
+ s << H3 << "Depends (" << ds.size () << ")" << ~H3
<< TABLE(CLASS="proplist", ID="depends")
<< TBODY;
@@ -361,7 +363,7 @@ handle (request& rq, response& rs)
const auto& rm (pkg->requirements);
if (!rm.empty ())
{
- s << H3 << "Requires" << ~H3
+ s << H3 << "Requires (" << rm.size () << ")" << ~H3
<< TABLE(CLASS="proplist", ID="requires")
<< TBODY;