+ Add Product Level 2.5 drop-down menu.
This commit is contained in:
@@ -10,9 +10,34 @@ declare(strict_types=1);
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
/* zin: Define the productMenu on main menu. */
|
||||
$productDropdown = '';
|
||||
if($execution->hasProduct)
|
||||
{
|
||||
$productDropdown = productMenu(
|
||||
set::title($productOption[$productID]),
|
||||
set::items($productOption),
|
||||
set::activeKey($productID),
|
||||
set::link(helper::createLink('execution', 'bug', "executionID={$execution->id}&productID=%s")),
|
||||
);
|
||||
}
|
||||
|
||||
$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}¶m=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"),
|
||||
li(searchToggle(set::module('executionBug')))
|
||||
|
||||
Reference in New Issue
Block a user