From 38e85b8a9fa18a5ca20f8e228b43f4424b08853b Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 3 Apr 2023 10:54:38 +0800 Subject: [PATCH] * Code for task #89904. --- module/doc/view/tablecontents.html.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index cc2e0d415f..0dfc6871ff 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -29,6 +29,13 @@
createLink('api', 'struct', "libID=$libID"), " " . $lang->api->struct, '', "class='btn btn-link'"); + if(common::hasPriv('api', 'releases')) echo html::a($this->createLink('api', 'releases', "libID=$libID", 'html', true), " " . $lang->api->releases, '', "class='btn btn-link iframe' data-width='800px'"); + if(common::hasPriv('api', 'createRelease')) echo html::a($this->createLink('api', 'createRelease', "libID=$libID"), " " . $lang->api->createRelease, '', "class='btn btn-link iframe' data-width='800px'"); + } + if($canExport) { echo html::a($this->createLink('doc', $exportMethod, "libID=$libID&docID=0", 'html', true), " " . $lang->export, '', "class='btn btn-link export' id='{$exportMethod}'");