* [task#156010,done,0.2h] finish task.

This commit is contained in:
sunguangming
2026-01-16 17:18:40 +08:00
committed by 孙广明
parent 6fbe1fb48d
commit 0d8e1fcc06
2 changed files with 13 additions and 13 deletions
+9 -9
View File
@@ -389,16 +389,16 @@ class custom extends control
return $this->sendSuccess(array('callback' => '$.apps.updateAppsMenu(true);', 'load' => true, 'closeModel' => true));
}
list($disabledFeatures, $enabledScrumFeatures, $disabledScrumFeatures) = $this->custom->computeFeatures();
list($disabledFeatures, $enabledProjectFeatures, $disabledProjectFeatures) = $this->custom->computeFeatures();
$this->view->title = $this->lang->custom->mode;
$this->view->mode = $mode;
$this->view->programs = $this->loadModel('program')->getTopPairs('noclosed', true);
$this->view->programID = isset($this->config->global->defaultProgram) ? $this->config->global->defaultProgram : 0;
$this->view->disabledFeatures = $disabledFeatures;
$this->view->enabledScrumFeatures = $enabledScrumFeatures;
$this->view->disabledScrumFeatures = $disabledScrumFeatures;
$this->view->currentModeTips = sprintf($this->lang->custom->currentModeTips, $this->lang->custom->modeList[$mode], $this->lang->custom->modeList[$mode == 'light' ? 'ALM' : 'light']);
$this->view->title = $this->lang->custom->mode;
$this->view->mode = $mode;
$this->view->programs = $this->loadModel('program')->getTopPairs('noclosed', true);
$this->view->programID = isset($this->config->global->defaultProgram) ? $this->config->global->defaultProgram : 0;
$this->view->disabledFeatures = $disabledFeatures;
$this->view->enabledProjectFeatures = $enabledProjectFeatures;
$this->view->disabledProjectFeatures = $disabledProjectFeatures;
$this->view->currentModeTips = sprintf($this->lang->custom->currentModeTips, $this->lang->custom->modeList[$mode], $this->lang->custom->modeList[$mode == 'light' ? 'ALM' : 'light']);
$this->display();
}
+4 -4
View File
@@ -17,11 +17,11 @@ jsVar('hasProgram', !empty($programs));
$featureItems = array();
foreach($disabledFeatures as $feature)
{
if(is_array($feature) and empty($disabledScrumFeatures)) continue;
if(is_array($feature) and empty($disabledProjectFeatures)) continue;
$featureItems[] = h::tr
(
setClass('text-center'),
h::td(setClass('text-left'), (is_array($feature) && !empty($disabledScrumFeatures)) ? sprintf($this->lang->custom->scrum->common, implode($lang->comma, $disabledScrumFeatures)) : $this->lang->custom->features[$feature]),
h::td(setClass('text-left'), (is_array($feature) && !empty($disabledProjectFeatures)) ? implode($lang->comma, $disabledProjectFeatures) : $this->lang->custom->features[$feature]),
h::td(setClass('text-center'), icon(setClass('text-danger'), 'ban-circle')),
h::td(setClass('text-center'), icon(setClass('text-success'), 'check'))
);
@@ -29,12 +29,12 @@ foreach($disabledFeatures as $feature)
foreach($config->custom->allFeatures as $feature)
{
if(in_array($feature, $disabledFeatures)) continue;
if($feature == 'scrumDetail' and empty($enabledScrumFeatures)) continue;
if($feature == 'projectDetail' and empty($enabledProjectFeatures)) continue;
$featureItems[] = h::tr
(
setClass('text-center'),
h::td(setClass('text-left'), ($feature == 'scrumDetail' and !empty($enabledScrumFeatures)) ? sprintf($this->lang->custom->scrum->common, implode($lang->comma, $enabledScrumFeatures)) : $this->lang->custom->features[$feature]),
h::td(setClass('text-left'), ($feature == 'projectDetail' and !empty($enabledProjectFeatures)) ? implode($lang->comma, $enabledProjectFeatures) : $this->lang->custom->features[$feature]),
h::td(setClass('text-center'), icon(setClass('text-success'), 'check')),
h::td(setClass('text-center'), icon(setClass('text-success'), 'check'))
);