* Remove old product menu of executon-bug.

This commit is contained in:
zhouxin
2023-10-25 13:51:35 +08:00
parent f2a975a616
commit 2c0d22cbda
-25
View File
@@ -10,34 +10,9 @@ declare(strict_types=1);
*/
namespace zin;
/* zin: Define the productMenu on main menu. */
$productDropdown = '';
if($execution->hasProduct)
{
$productDropdown = productMenu(
set::title($product ? $product->name : $productOption[$productID]),
set::items($productOption),
set::activeKey($productID),
set::link(helper::createLink('execution', 'bug', "executionID={$execution->id}&productID={key}")),
);
}
$branchDropdown = '';
if($showBranch)
{
$branchDropdown = productMenu(
set::title($branchOption[$branch]),
set::items($branchOption),
set::activeKey($branch),
set::link(helper::createLink('execution', 'bug', "executionID={$execution->id}&productID={$productID}&branch=%s")),
);
}
/* zin: Define the set::module('bug') feature bar on main menu. */
featureBar
(
to::before($productDropdown),
to::before($branchDropdown),
set::current($type),
set::linkParams("executionID={$execution->id}&productID={$productID}&branch={$branchID}&orderBy={$orderBy}&build={$buildID}&type={key}&param=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"),
li(searchToggle(set::module('executionBug'), set::open($type == 'bysearch')))