diff --git a/module/backup/lang/zh-tw.php b/module/backup/lang/zh-tw.php index 6eb3443ae3..64f8c5e89f 100644 --- a/module/backup/lang/zh-tw.php +++ b/module/backup/lang/zh-tw.php @@ -1,5 +1,5 @@ backup->common = '備份'; +$lang->backup->common = '系統備份'; $lang->backup->index = '備份首頁'; $lang->backup->history = '備份歷史'; $lang->backup->delete = '刪除備份'; @@ -8,6 +8,9 @@ $lang->backup->restore = '還原'; $lang->backup->change = '保留時間'; $lang->backup->changeAB = '修改'; $lang->backup->rmPHPHeader = '去除安全設置'; +$lang->backup->setting = '設置'; + +$lang->backup->settingAction = '備份設置'; $lang->backup->time = '備份時間'; $lang->backup->files = '備份檔案'; @@ -19,7 +22,6 @@ $lang->backup->status = '狀態'; $lang->backup->statusList['success'] = '成功'; $lang->backup->statusList['fail'] = '失敗'; -$lang->backup->setting = '設置'; $lang->backup->settingDir = '備份目錄'; $lang->backup->settingList['nofile'] = '不備份附件和代碼'; $lang->backup->settingList['nosafe'] = '不需要防下載PHP檔案頭'; diff --git a/module/block/control.php b/module/block/control.php index 9ea995f2ec..6e33182fcd 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -885,7 +885,7 @@ class block extends control $this->app->loadClass('pager', $static = true); $pager = pager::init(0, 3, 1); $project->progress = $project->allStories == 0 ? 0 : round($project->doneStories / $project->allStories, 3) * 100; - $project->executions = $this->project->getStats($projectID, 'all', 0, 0, 30, 'id_asc', $pager); + $project->executions = $this->project->getStats($projectID, 'all', 0, 0, 30, 'id_desc', $pager); } elseif($project->model == 'waterfall' and isset($this->config->maxVersion)) { diff --git a/module/block/lang/de.php b/module/block/lang/de.php index e585018161..2d4307671a 100644 --- a/module/block/lang/de.php +++ b/module/block/lang/de.php @@ -11,12 +11,20 @@ */ global $config; $lang->block = new stdclass(); -$lang->block->common = 'InfoBlock'; -$lang->block->name = 'Name'; -$lang->block->style = 'Style'; -$lang->block->grid = 'Gitter'; -$lang->block->color = 'Farbe'; -$lang->block->reset = 'Zurücksetzen'; +$lang->block->common = 'InfoBlock'; +$lang->block->name = 'Name'; +$lang->block->style = 'Style'; +$lang->block->grid = 'Gitter'; +$lang->block->color = 'Farbe'; +$lang->block->reset = 'Zurücksetzen'; +$lang->block->story = 'Story'; +$lang->block->bug = 'Bug'; +$lang->block->investment = 'Investment'; +$lang->block->left = 'Left'; +$lang->block->estimate = 'Estimate'; +$lang->block->doneBugs = 'Done'; +$lang->block->leftBugs = 'Left'; +$lang->block->last = 'Last'; $lang->block->account = 'Konto'; $lang->block->module = 'Modul'; diff --git a/module/block/lang/en.php b/module/block/lang/en.php index 9cc986161e..fd92c396d1 100644 --- a/module/block/lang/en.php +++ b/module/block/lang/en.php @@ -11,12 +11,20 @@ */ global $config; $lang->block = new stdclass(); -$lang->block->common = 'Block'; -$lang->block->name = 'Name'; -$lang->block->style = 'Style'; -$lang->block->grid = 'Position'; -$lang->block->color = 'Color'; -$lang->block->reset = 'Reset Layout'; +$lang->block->common = 'Block'; +$lang->block->name = 'Name'; +$lang->block->style = 'Style'; +$lang->block->grid = 'Position'; +$lang->block->color = 'Color'; +$lang->block->reset = 'Reset Layout'; +$lang->block->story = 'Story'; +$lang->block->bug = 'Bug'; +$lang->block->investment = 'Investment'; +$lang->block->left = 'Left'; +$lang->block->estimate = 'Estimate'; +$lang->block->doneBugs = 'Done'; +$lang->block->leftBugs = 'Left'; +$lang->block->last = 'Last'; $lang->block->account = 'Account'; $lang->block->module = 'Module'; diff --git a/module/block/lang/fr.php b/module/block/lang/fr.php index 5d94570219..0b2043849d 100644 --- a/module/block/lang/fr.php +++ b/module/block/lang/fr.php @@ -11,12 +11,20 @@ */ global $config; $lang->block = new stdclass(); -$lang->block->common = 'Bloc'; -$lang->block->name = 'Nom'; -$lang->block->style = 'Style'; -$lang->block->grid = 'Position'; -$lang->block->color = 'Couleur'; -$lang->block->reset = 'Réinit'; +$lang->block->common = 'Bloc'; +$lang->block->name = 'Nom'; +$lang->block->style = 'Style'; +$lang->block->grid = 'Position'; +$lang->block->color = 'Couleur'; +$lang->block->reset = 'Réinit'; +$lang->block->story = 'Story'; +$lang->block->bug = 'Bug'; +$lang->block->investment = 'Investment'; +$lang->block->left = 'Left'; +$lang->block->estimate = 'Estimate'; +$lang->block->doneBugs = 'Done'; +$lang->block->leftBugs = 'Left'; +$lang->block->last = 'Last'; $lang->block->account = 'Compte'; $lang->block->module = 'Module'; diff --git a/module/block/lang/vi.php b/module/block/lang/vi.php index 4090bb741f..2b82f707ab 100644 --- a/module/block/lang/vi.php +++ b/module/block/lang/vi.php @@ -11,12 +11,20 @@ */ global $config; $lang->block = new stdclass(); -$lang->block->common = 'Block'; -$lang->block->name = 'Tên'; -$lang->block->style = 'Kiểu'; -$lang->block->grid = 'Vị trí'; -$lang->block->color = 'Màu'; -$lang->block->reset = 'Thiết lập lại giao diện'; +$lang->block->common = 'Block'; +$lang->block->name = 'Tên'; +$lang->block->style = 'Kiểu'; +$lang->block->grid = 'Vị trí'; +$lang->block->color = 'Màu'; +$lang->block->reset = 'Thiết lập lại giao diện'; +$lang->block->story = 'Story'; +$lang->block->bug = 'Bug'; +$lang->block->investment = 'Investment'; +$lang->block->left = 'Left'; +$lang->block->estimate = 'Estimate'; +$lang->block->doneBugs = 'Done'; +$lang->block->leftBugs = 'Left'; +$lang->block->last = 'Last'; $lang->block->account = 'Tài khoản'; $lang->block->module = 'Module'; diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php index 7947c7b380..f6312957b6 100644 --- a/module/block/lang/zh-cn.php +++ b/module/block/lang/zh-cn.php @@ -11,12 +11,20 @@ */ global $config; $lang->block = new stdclass(); -$lang->block->common = '区块'; -$lang->block->name = '区块名称'; -$lang->block->style = '外观'; -$lang->block->grid = '位置'; -$lang->block->color = '颜色'; -$lang->block->reset = '恢复默认'; +$lang->block->common = '区块'; +$lang->block->name = '区块名称'; +$lang->block->style = '外观'; +$lang->block->grid = '位置'; +$lang->block->color = '颜色'; +$lang->block->reset = '恢复默认'; +$lang->block->story = '需求'; +$lang->block->bug = 'Bug'; +$lang->block->investment = '投入'; +$lang->block->left = '剩余'; +$lang->block->estimate = '预计工时'; +$lang->block->doneBugs = '已解决'; +$lang->block->leftBugs = '未解决'; +$lang->block->last = '近期'; $lang->block->account = '所属用户'; $lang->block->module = '所属模块'; diff --git a/module/block/lang/zh-tw.php b/module/block/lang/zh-tw.php index 8e0114c099..2618da7ef5 100644 --- a/module/block/lang/zh-tw.php +++ b/module/block/lang/zh-tw.php @@ -9,13 +9,22 @@ * @version $Id$ * @link http://www.zentao.net */ +global $config; $lang->block = new stdclass(); -$lang->block->common = '區塊'; -$lang->block->name = '區塊名稱'; -$lang->block->style = '外觀'; -$lang->block->grid = '位置'; -$lang->block->color = '顏色'; -$lang->block->reset = '恢復預設'; +$lang->block->common = '區塊'; +$lang->block->name = '區塊名稱'; +$lang->block->style = '外觀'; +$lang->block->grid = '位置'; +$lang->block->color = '顏色'; +$lang->block->reset = '恢復預設'; +$lang->block->story = '需求'; +$lang->block->bug = 'Bug'; +$lang->block->investment = '投入'; +$lang->block->left = '剩餘'; +$lang->block->estimate = '預計工時'; +$lang->block->doneBugs = '已解決'; +$lang->block->leftBugs = '未解決'; +$lang->block->last = '近期'; $lang->block->account = '所屬用戶'; $lang->block->module = '所屬模組'; @@ -280,11 +289,14 @@ $lang->block->default['full']['my']['3']['grid'] = 4; $lang->block->default['full']['my']['3']['source'] = 'todo'; $lang->block->default['full']['my']['3']['params']['count'] = '20'; +if($config->systemMode == 'new') +{ $lang->block->default['full']['my']['4']['title'] = '項目統計'; $lang->block->default['full']['my']['4']['block'] = 'statistic'; $lang->block->default['full']['my']['4']['source'] = 'project'; $lang->block->default['full']['my']['4']['grid'] = 8; $lang->block->default['full']['my']['4']['params']['count'] = '20'; +} $lang->block->default['full']['my']['5']['title'] = '我的貢獻'; $lang->block->default['full']['my']['5']['block'] = 'contribute'; @@ -308,10 +320,13 @@ $lang->block->default['full']['my']['7']['params']['riskNum'] = '20'; $lang->block->default['full']['my']['7']['params']['issueNum'] = '20'; $lang->block->default['full']['my']['7']['params']['storyNum'] = '20'; -$lang->block->default['full']['my']['8']['title'] = '項目人力投入'; -$lang->block->default['full']['my']['8']['block'] = 'projectteam'; -$lang->block->default['full']['my']['8']['source'] = 'project'; -$lang->block->default['full']['my']['8']['grid'] = 8; +if($config->systemMode == 'new') +{ + $lang->block->default['full']['my']['8']['title'] = '項目人力投入'; + $lang->block->default['full']['my']['8']['block'] = 'projectteam'; + $lang->block->default['full']['my']['8']['source'] = 'project'; + $lang->block->default['full']['my']['8']['grid'] = 8; +} $lang->block->default['full']['my']['9']['title'] = '項目列表'; $lang->block->default['full']['my']['9']['block'] = 'project'; @@ -340,7 +355,8 @@ $lang->block->availableBlocks->testtask = '測試版本列表'; $lang->block->availableBlocks->risk = '我的風險'; $lang->block->availableBlocks->issue = '我的問題'; -$lang->block->moduleList['project'] = '項目'; +global $config; +if($config->systemMode == 'new') $lang->block->moduleList['project'] = '項目'; $lang->block->moduleList['product'] = $lang->productCommon; $lang->block->moduleList['execution'] = $lang->execution->common; $lang->block->moduleList['qa'] = '測試'; @@ -351,7 +367,7 @@ $lang->block->modules['project']->availableBlocks = new stdclass(); $lang->block->modules['project']->availableBlocks->project = '項目列表'; $lang->block->modules['project']->availableBlocks->recentproject = '近期項目'; $lang->block->modules['project']->availableBlocks->statistic = '項目統計'; -$lang->block->modules['project']->availableBlocks->projectteam = '項目人力投入'; +if($config->systemMode == 'new') $lang->block->modules['project']->availableBlocks->projectteam = '項目人力投入'; $lang->block->modules['scrum']['index'] = new stdclass(); $lang->block->modules['scrum']['index']->availableBlocks = new stdclass(); @@ -518,11 +534,11 @@ $lang->block->modules['project']->moreLinkList->cmmireport = 'weekly|index|' $lang->block->modules['project']->moreLinkList->cmmiestimate = 'workestimation|index|'; $lang->block->modules['project']->moreLinkList->cmmiissue = 'issue|browse|'; $lang->block->modules['project']->moreLinkList->cmmirisk = 'risk|browse|'; -$lang->block->modules['project']->moreLinkList->scrumlist = 'project|all|'; -$lang->block->modules['project']->moreLinkList->scrumtest = 'testtask|browse|'; +$lang->block->modules['project']->moreLinkList->scrumlist = 'project|execution|'; +$lang->block->modules['project']->moreLinkList->scrumtest = 'project|testtask|'; $lang->block->modules['project']->moreLinkList->scrumproduct = 'product|all|'; -$lang->block->modules['project']->moreLinkList->sprint = 'project|all|'; -$lang->block->modules['project']->moreLinkList->projectdynamic = 'company|dynamic|'; +$lang->block->modules['project']->moreLinkList->sprint = 'project|execution|'; +$lang->block->modules['project']->moreLinkList->projectdynamic = 'project|dynamic|'; $lang->block->modules['product']->moreLinkList = new stdclass(); $lang->block->modules['product']->moreLinkList->list = 'product|all|'; diff --git a/module/block/view/projectstatisticblock.html.php b/module/block/view/projectstatisticblock.html.php index 31ff3874e9..37532e6a0d 100644 --- a/module/block/view/projectstatisticblock.html.php +++ b/module/block/view/projectstatisticblock.html.php @@ -22,7 +22,7 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po .block-statistic .tile {margin-bottom: 30px;} .block-statistic .tile-title {font-size: 18px; color: #A6AAB8;} .block-statistic .tile-amount {font-size: 48px; margin-bottom: 10px;} -.block-statistic .col-nav {border-right: 1px solid #EBF2FB; width: 260px; padding: 0;} +.block-statistic .col-nav {border-right: 1px solid #EBF2FB; width: 210px; padding: 0;} .block-statistic .nav-secondary > li {position: relative;} .block-statistic .nav-secondary > li > a {font-size: 14px; color: #838A9D; position: relative; box-shadow: none; padding-left: 20px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; transition: all .2s;} .block-statistic .nav-secondary > li > a:first-child {padding-right: 36px;} @@ -60,24 +60,32 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po .block-statistic .project-info .col-xs-5, .block-statistic .project-info .col-xs-7 {margin-top: 8px;} .block-statistic .project-info .col-xs-5 {padding-left: 0;} +.block-statistic .data {width: 40%; text-align: left; padding: 10px 0px; font-size: 14px; font-weight: 700;} +.block-statistic .dataTitle {width: 60%; text-align: right; padding: 10px 0px; font-size: 14px;} +.block-statistic .executionName {padding-top: 2px; font-size: 14px;} +.block-statistic .lastIteration {padding-top: 6px;} +.block-statistic .progress-text-left {margin-right: 90px} +.block-statistic .progress-text-left .progress-text {padding-top: 2px; font-size: 14px;} + .status-count {margin: auto;} .status-count tr:first-child td:last-child {color: #000; font-weight: bold;} .block-statistic .project-info {margin-left: 3px;} +.block-statistic .project-budget {white-space: nowrap;} .block-statistic .progress-group {margin-top: 10px;} .block-statistic .progress-group .col {padding-left: 0;} -.block-statistic .progress-percent {top: 4px;} +.block-statistic .progress-percent {margin-top: 4px;} .block-statistic .weekly-title {font-weight: bold; color: #3C4253;} .block-statistic .weekly-small {font-size:12px; color: #838A9D;} .block-statistic .weekly-progress {font-weight: bold; font-size:24px;} .block-statistic .weekly-name {font-size: 14px; color: #838A9D;} .block-statistic .weekly-value {font-size: 14px;} .block-statistic .col-12 .stage {margin-left: 10px;} -.block-statistic .col-12 .waterfall-title {padding-top: 5px;} +.block-statistic .col-12 .waterfall-title {padding-top: 3px;} .block-statistic .col-12 .waterfall-value {padding-top: 10px; font-size: 18px; font-weight: 600;} .block-statistic .col-12 .waterfall-title .col {padding-right: 0px; padding-left: 0px;} -.twenty-percent {width: 20%;} +.forty-percent {width: 40%;}