Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
.container {max-width: 950px!important;}
|
||||
.container .actions {margin-bottom: 10px; padding: 0}
|
||||
.container .actions > .text {padding: 5px 5px 5px 15px; line-height: 20px}
|
||||
.mw-220px {max-width: 220px!important}
|
||||
#wrap h1{font-size:14px;}
|
||||
#interval{margin-right:10px;}
|
||||
.canvas-wrapper {padding: 15px; border: 1px solid #ddd;}
|
||||
|
||||
@@ -146,6 +146,7 @@ $lang->project->storySort = 'Sort Story';
|
||||
$lang->project->importPlanStory = 'Create ' . $lang->projectCommon . ' success!\nImport the stories with the plan?';
|
||||
$lang->project->iteration = 'Iteration';
|
||||
$lang->project->iterationInfo = 'Iteration %s times';
|
||||
$lang->project->viewAll = 'View All';
|
||||
|
||||
/* 分组浏览。*/
|
||||
$lang->project->allTasks = 'All';
|
||||
|
||||
@@ -147,6 +147,7 @@ $lang->project->storySort = '需求排序';
|
||||
$lang->project->importPlanStory = '创建' . $lang->projectCommon . '成功!\n是否导入计划关联的相关需求?';
|
||||
$lang->project->iteration = '版本迭代';
|
||||
$lang->project->iterationInfo = '迭代%s次';
|
||||
$lang->project->viewAll = '查看所有';
|
||||
|
||||
/* 分组浏览。*/
|
||||
$lang->project->allTasks = '所有';
|
||||
|
||||
@@ -78,9 +78,9 @@ class projectModel extends model
|
||||
if($project and $project->type == 'ops')
|
||||
{
|
||||
unset($this->lang->project->menu->story);
|
||||
unset($this->lang->project->menu->bug);
|
||||
unset($this->lang->project->menu->build);
|
||||
unset($this->lang->project->menu->testtask);
|
||||
unset($this->lang->project->subMenu->qa->bug);
|
||||
unset($this->lang->project->subMenu->qa->build);
|
||||
unset($this->lang->project->subMenu->qa->testtask);
|
||||
}
|
||||
|
||||
if($projects and !isset($projects[$projectID]) and !$this->checkPriv($project))
|
||||
@@ -118,6 +118,36 @@ class projectModel extends model
|
||||
foreach($this->lang->project->menu as $key => $menu)
|
||||
{
|
||||
$replace = $projectID;
|
||||
|
||||
/* Replace for dropdown submenu. */
|
||||
if(isset($this->lang->project->subMenu->$key))
|
||||
{
|
||||
$dropTitle = '';
|
||||
$hasActive = false;
|
||||
$replace = "<ul class='dropdown-menu'>";
|
||||
foreach($this->lang->project->subMenu->$key as $subMenuKey => $subMenuLink)
|
||||
{
|
||||
list($subMenuName, $subMenuModule, $subMenuMethod, $subMenuParams) = explode('|', $subMenuLink);
|
||||
if(!commonModel::hasPriv($subMenuModule, $subMenuMethod)) continue;
|
||||
|
||||
if(empty($dropTitle)) $dropTitle = $subMenuName;
|
||||
|
||||
$active = '';
|
||||
if($moduleName == $subMenuModule and $methodName == $subMenuMethod)
|
||||
{
|
||||
$active = "class='active'";
|
||||
$dropTitle = $subMenuName;
|
||||
}
|
||||
|
||||
$replace .= "<li $active>" . html::a(helper::createLink($subMenuModule, $subMenuMethod, sprintf($subMenuParams, $projectID)), $subMenuName) . '</li>';
|
||||
if($active) $hasActive = true;
|
||||
}
|
||||
$replace .= '</ul>';
|
||||
$replace = "<a data-toggle='dropdown'>$dropTitle <span class='caret'></span></a>" . $replace;
|
||||
|
||||
$this->lang->project->menu->$key['class'] = 'dropdown';
|
||||
if($hasActive) $this->lang->project->menu->$key['class'] .= ' active';
|
||||
}
|
||||
common::setMenuVars($this->lang->project->menu, $key, $replace);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user