diff --git a/module/project/control.php b/module/project/control.php index 2f462e2593..c8c756e389 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1221,6 +1221,8 @@ class project extends control $project = $this->project->getById($projectID, true); if(!$project) die(js::error($this->lang->notFound) . js::locate('back')); + $products = $this->project->getProducts($project->id); + /* Set menu. */ $this->project->setMenu($this->projects, $project->id); @@ -1228,11 +1230,12 @@ class project extends control $this->view->position[] = html::a($this->createLink('project', 'browse', "projectID=$projectID"), $project->name); $this->view->position[] = $this->view->title; - $this->view->project = $project; - $this->view->products = $this->project->getProducts($project->id); - $this->view->groups = $this->loadModel('group')->getPairs(); - $this->view->actions = $this->loadModel('action')->getList('project', $projectID); - $this->view->users = $this->loadModel('user')->getPairs('noletter'); + $this->view->project = $project; + $this->view->products = $products; + $this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($products)); + $this->view->groups = $this->loadModel('group')->getPairs(); + $this->view->actions = $this->loadModel('action')->getList('project', $projectID); + $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->display(); } diff --git a/module/project/css/manageproducts.css b/module/project/css/manageproducts.css index bdf0ad390b..400b0db663 100644 --- a/module/project/css/manageproducts.css +++ b/module/project/css/manageproducts.css @@ -1,6 +1,6 @@ #productsBox {padding: 20px;} #productsBox > .col-sm-4 {padding: 8px 15px; border:1px solid #ddd; min-height:48px; margin-bottom:5px; width:32%; margin-right:8px;} -#productsBox > .col-sm-4 label {display:block} -#productsBox > .col-sm-4:hover {background: #f1f1f1} +#productsBox > .col-sm-4 label {display:block; cursor: pointer;} +#productsBox > .col-sm-4:hover {background: #f1f1f1; cursor: pointer;} #productsBox > .col-sm-4.checked, #productsBox > .col-sm-4.checked:hover {background: #E5FFE6; border: 1px solid #229F24;} .col-sm-4+.col-sm-4 {margin-left: 0;} diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php index bd5c694cf9..3ebd3a972a 100644 --- a/module/project/view/view.html.php +++ b/module/project/view/view.html.php @@ -110,7 +110,20 @@ project->products;?> - $product) echo html::a($this->createLink('product', 'browse', "productID=$productID"), $product->name) . '
';?> + $product) + { + if($product->type !== 'normal') + { + echo html::a($this->createLink('product', 'browse', "productID=$productID&branch=$product->branch"), $product->name . '/' . $branchGroups[$productID][$product->branch]); + } + else + { + echo html::a($this->createLink('product', 'browse', "productID=$productID"), $product->name); + } + echo '
'; + } + ?> diff --git a/module/release/view/browse.html.php b/module/release/view/browse.html.php index d0d7c1b422..e7625774c0 100644 --- a/module/release/view/browse.html.php +++ b/module/release/view/browse.html.php @@ -46,7 +46,7 @@ if(common::hasPriv('release', 'changeStatus')) { $changedStatus = $release->status == 'normal' ? 'terminate' : 'normal'; - echo html::a(inlink('changeStatus', "releaseID=$release->id&status=$changedStatus"), ' ', 'hiddenwin', "class='btn-icon' title='{$lang->release->statusList[$changedStatus]}'"); + echo html::a(inlink('changeStatus', "releaseID=$release->id&status=$changedStatus"), ' ', 'hiddenwin', "class='btn-icon' title='{$lang->release->statusList[$changedStatus]}'"); } common::printIcon('release', 'edit', "release=$release->id", '', 'list'); if(common::hasPriv('release', 'delete')) diff --git a/module/release/view/view.html.php b/module/release/view/view.html.php index a94d5ac0a7..2348a751c3 100644 --- a/module/release/view/view.html.php +++ b/module/release/view/view.html.php @@ -32,7 +32,7 @@ if(common::hasPriv('release', 'changeStatus')) { $changedStatus = $release->status == 'normal' ? 'terminate' : 'normal'; - echo html::a(inlink('changeStatus', "releaseID=$release->id&type=$changedStatus"), ' ' . $lang->release->statusList[$changedStatus], 'hiddenwin', "class='btn'"); + echo html::a(inlink('changeStatus', "releaseID=$release->id&type=$changedStatus"), ' ' . $lang->release->statusList[$changedStatus], 'hiddenwin', "class='btn'"); } if(common::hasPriv('release', 'linkStory')) echo html::a(inlink('view', "releaseID=$release->id&type=story&link=true"), ' ' . $lang->release->linkStory, '', "class='btn'"); if(common::hasPriv('release', 'linkBug')) echo html::a(inlink('view', "releaseID=$release->id&type=bug&link=true"), ' ' . $lang->release->linkBug, '', "class='btn'"); diff --git a/module/testtask/view/browse.html.php b/module/testtask/view/browse.html.php index d8d06639a5..b5e6e6f759 100644 --- a/module/testtask/view/browse.html.php +++ b/module/testtask/view/browse.html.php @@ -23,15 +23,14 @@ recTotal}&recPerPage={$pager->recPerPage}"; ?> - idAB);?> - testtask->name);?> - testtask->project);?> - testtask->build);?> - testtask->owner);?> - testtask->begin);?> - testtask->end);?> - statusAB);?> - actions;?> + idAB);?> + testtask->name);?> + testtask->project . '/' . $lang->testtask->build;?> + testtask->owner);?> + testtask->begin);?> + testtask->end);?> + statusAB);?> + actions;?> @@ -39,14 +38,19 @@ id"), sprintf('%03d', $task->id));?> id"), $task->name);?> - createLink('project', 'story', "projectID=$task->project"), $task->projectName);?> - build == 'trunk' ? print('Trunk') : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName));?> + + createLink('project', 'story', "projectID=$task->project"), $task->projectName) . '/'; + $task->build == 'trunk' ? print('Trunk') : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName));; + ?> + owner];?> begin?> end?> testtask->statusList[$task->status];?> id", 'play', 'list', 'smile'); common::printIcon('testtask', 'view', "taskID=$task->id", '', 'list', 'file'); common::printIcon('testtask', 'linkCase', "taskID=$task->id", '', 'list', 'link'); common::printIcon('testtask', 'edit', "taskID=$task->id", '', 'list'); @@ -61,7 +65,7 @@ - show();?> + show();?>