* Finish task #102162.
This commit is contained in:
@@ -81,12 +81,13 @@ $lang->metric->featureBar['preview']['dept'] = 'Team';
|
||||
$lang->metric->featureBar['preview']['user'] = 'Individual';
|
||||
$lang->metric->featureBar['preview']['program'] = 'Program';
|
||||
$lang->metric->featureBar['preview']['system'] = 'System';
|
||||
$lang->metric->featureBar['preview']['more'] = 'More';
|
||||
$lang->metric->featureBar['preview']['collect'] = 'My Collect';
|
||||
$lang->metric->featureBar['preview']['code'] = 'Code Repository';
|
||||
$lang->metric->featureBar['preview']['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->more = 'More';
|
||||
$lang->metric->collect = 'My Collect';
|
||||
|
||||
$lang->metric->moreSelects = array();
|
||||
$lang->metric->moreSelects['code'] = 'Code Repository';
|
||||
$lang->metric->moreSelects['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->unitList = array();
|
||||
$lang->metric->unitList['count'] = 'Count';
|
||||
|
||||
@@ -81,12 +81,13 @@ $lang->metric->featureBar['preview']['dept'] = 'Team';
|
||||
$lang->metric->featureBar['preview']['user'] = 'Individual';
|
||||
$lang->metric->featureBar['preview']['program'] = 'Program';
|
||||
$lang->metric->featureBar['preview']['system'] = 'System';
|
||||
$lang->metric->featureBar['preview']['more'] = 'More';
|
||||
$lang->metric->featureBar['preview']['collect'] = 'My Collect';
|
||||
$lang->metric->featureBar['preview']['code'] = 'Code Repository';
|
||||
$lang->metric->featureBar['preview']['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->more = 'More';
|
||||
$lang->metric->collect = 'My Collect';
|
||||
|
||||
$lang->metric->moreSelects = array();
|
||||
$lang->metric->moreSelects['code'] = 'Code Repository';
|
||||
$lang->metric->moreSelects['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->unitList = array();
|
||||
$lang->metric->unitList['count'] = 'Count';
|
||||
|
||||
@@ -81,12 +81,13 @@ $lang->metric->featureBar['preview']['dept'] = 'Team';
|
||||
$lang->metric->featureBar['preview']['user'] = 'Individual';
|
||||
$lang->metric->featureBar['preview']['program'] = 'Program';
|
||||
$lang->metric->featureBar['preview']['system'] = 'System';
|
||||
$lang->metric->featureBar['preview']['more'] = 'More';
|
||||
$lang->metric->featureBar['preview']['collect'] = 'My Collect';
|
||||
$lang->metric->featureBar['preview']['code'] = 'Code Repository';
|
||||
$lang->metric->featureBar['preview']['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->more = 'More';
|
||||
$lang->metric->collect = 'My Collect';
|
||||
|
||||
$lang->metric->moreSelects = array();
|
||||
$lang->metric->moreSelects['code'] = 'Code Repository';
|
||||
$lang->metric->moreSelects['pipeline'] = 'Pipeline';
|
||||
|
||||
$lang->metric->unitList = array();
|
||||
$lang->metric->unitList['count'] = 'Count';
|
||||
|
||||
@@ -83,12 +83,13 @@ $lang->metric->featureBar['preview']['dept'] = '团队';
|
||||
$lang->metric->featureBar['preview']['user'] = '个人';
|
||||
$lang->metric->featureBar['preview']['program'] = '项目集';
|
||||
$lang->metric->featureBar['preview']['system'] = '系统';
|
||||
$lang->metric->featureBar['preview']['more'] = '更多';
|
||||
$lang->metric->featureBar['preview']['collect'] = '我收藏的';
|
||||
$lang->metric->featureBar['preview']['code'] = '代码库';
|
||||
$lang->metric->featureBar['preview']['pipeline'] = '流水线';
|
||||
|
||||
$lang->metric->more = '更多';
|
||||
$lang->metric->collect = '我收藏的';
|
||||
|
||||
$lang->metric->moreSelects = array();
|
||||
$lang->metric->moreSelects['code'] = '代码库';
|
||||
$lang->metric->moreSelects['pipeline'] = '流水线';
|
||||
|
||||
$lang->metric->unitList = array();
|
||||
$lang->metric->unitList['count'] = '个';
|
||||
|
||||
+17
-2
@@ -610,11 +610,26 @@ class metricModel extends model
|
||||
unset($this->lang->metric->scopeList[$scope]);
|
||||
|
||||
unset($this->lang->metric->featureBar['preview'][$scope]);
|
||||
unset($this->lang->metric->moreSelects[$scope]);
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($this->lang->metric->moreSelects)) unset($this->lang->metric->featureBar['preview']['more']);
|
||||
if(count($this->lang->metric->featureBar['preview']) >= 7)
|
||||
{
|
||||
$i = 0;
|
||||
foreach($this->lang->metric->featureBar['preview'] as $key => $name)
|
||||
{
|
||||
$i ++;
|
||||
if($i >= 7)
|
||||
{
|
||||
unset($this->lang->metric->featureBar['preview'][$key]);
|
||||
$this->lang->metric->moreSelects[$key] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
$this->lang->metric->featureBar['preview']['more'] = $this->lang->metric->more;
|
||||
}
|
||||
|
||||
$this->lang->metric->featureBar['preview']['collect'] = $this->lang->metric->collect;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user