* Finish task #5246.

This commit is contained in:
Yagami
2019-01-25 09:56:48 +08:00
parent 69413ff785
commit a19de16123
5 changed files with 6 additions and 27 deletions
+2 -14
View File
@@ -89,22 +89,10 @@
{
$groupBy = isset($groupBy) ? $groupBy : '';
$active = !empty($groupBy) ? 'btn-active-text' : '';
$current = zget($lang->testcase->groups, isset($groupBy) ? $groupBy : '', '');
if(empty($current)) $current = $lang->testcase->groups[''];
echo "<div id='groupTab' class='btn-group'>";
echo html::a('javascript:;', "<span class='text'>{$current}</span>" . " <span class='caret'></span>", '', "class='btn btn-link {$active}' data-toggle='dropdown'");
echo "<ul class='dropdown-menu'>";
foreach($lang->testcase->groups as $key => $value)
{
if($key == '') continue;
echo '<li' . ($key == $groupBy ? " class='active'" : '') . '>';
echo html::a($this->createLink('testcase', 'groupCase', "productID=$productID&branch=$branch&groupBy=$key"), $value);
echo "</li>";
}
echo '</ul></div>';
echo html::a($this->createLink('testcase', 'groupCase', "productID=$productID&branch=$branch&groupBy=story"), "<span class='text'>{$lang->testcase->groupByStories}</span>", '', "class='btn btn-link $active'");
echo '</div>';
}
elseif($hasZeroPriv and $menuType == 'zerocase')
{