diff --git a/module/admin/model.php b/module/admin/model.php index 03262e271f..8cc5e5fec1 100755 --- a/module/admin/model.php +++ b/module/admin/model.php @@ -343,7 +343,11 @@ class adminModel extends model $this->loadModel('mail'); if(!$this->config->mail->turnon and !$this->session->mailConfig) $subMenu['link'] = $this->lang->mail->common . '|mail|detect|'; } - if($menuKey == 'dev' and $subMenuKey == 'editor' and !empty($this->config->global->editor)) $subMenu['link'] = $this->lang->editor->common . '|editor|index|'; + if($menuKey == 'dev' and $subMenuKey == 'editor') + { + if(!empty($this->config->global->editor)) $subMenu['link'] = $this->lang->editor->common . '|editor|index|'; + if(empty($this->config->global->editor) and !$this->app->user->admin) continue; + } $link = array(); if(isset($menu['tabMenu'][$subMenuKey])) diff --git a/module/block/view/executionblock.html.php b/module/block/view/executionblock.html.php index 6bb6811063..aa1d3d527e 100644 --- a/module/block/view/executionblock.html.php +++ b/module/block/view/executionblock.html.php @@ -45,7 +45,7 @@ $viewLink = $this->createLink('execution', 'task', 'executionID=' . $execution->id); ?> > - name, '', "title='$execution->name'");?> + name, '', "title='$execution->name' class='text-primary'");?> end;?> diff --git a/module/dev/lang/de.php b/module/dev/lang/de.php index ff90bc3a20..d9c9d561c4 100644 --- a/module/dev/lang/de.php +++ b/module/dev/lang/de.php @@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj $lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}"; if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon; -$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; +if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; diff --git a/module/dev/lang/en.php b/module/dev/lang/en.php index 024a0761ce..42677ac6db 100644 --- a/module/dev/lang/en.php +++ b/module/dev/lang/en.php @@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj $lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}"; if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon; -$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; +if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; diff --git a/module/dev/lang/fr.php b/module/dev/lang/fr.php index 024a0761ce..42677ac6db 100644 --- a/module/dev/lang/fr.php +++ b/module/dev/lang/fr.php @@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj $lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}"; if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon; -$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; +if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage"; diff --git a/module/dev/lang/zh-cn.php b/module/dev/lang/zh-cn.php index 890f5b8bcb..784c53cd83 100644 --- a/module/dev/lang/zh-cn.php +++ b/module/dev/lang/zh-cn.php @@ -205,4 +205,4 @@ $lang->dev->projectMenu['waterfall'] = "瀑布 / 融合瀑布{$lang->project $lang->dev->projectMenu['kanbanProject'] = "看板{$lang->projectCommon}"; if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon; -$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / 阶段"; +if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / 阶段"; diff --git a/module/dev/model.php b/module/dev/model.php index cf4c7cd2af..57d487095a 100644 --- a/module/dev/model.php +++ b/module/dev/model.php @@ -536,13 +536,13 @@ class devModel extends model break; } - foreach($customeds as $type => $customed) + foreach($customeds as $customType => $customed) { if(is_array($customed)) { foreach($customed as $row) { - $langKey = $type == 'featureBar' ? "featureBar-{$method}_" : $row->section . '_'; + $langKey = $customType == 'featureBar' ? "featureBar-{$method}_" : $row->section . '_'; $rowKey = $row->key; $customedLangs[$langKey . $rowKey] = $row->value; } diff --git a/module/editor/css/extend.css b/module/editor/css/extend.css index a9ad22f8ae..4acc96c334 100644 --- a/module/editor/css/extend.css +++ b/module/editor/css/extend.css @@ -1,6 +1,7 @@ -body{padding-bottom:0px;background-color:#fff;} +body {padding-bottom:0px;background-color:#fff;} .expandable > ul {display: none!important} .collapsable > ul {display: block!important} .tree li:before {margin-right: 4px;} -.tree li>a{display:inline;} +.tree li > a{display:inline;} .main-content{padding: 0px; padding-top: 20px;} +#extendTree li a {white-space: nowrap;} diff --git a/module/editor/css/index.css b/module/editor/css/index.css index 4e5c35a06b..0541cdbe10 100644 --- a/module/editor/css/index.css +++ b/module/editor/css/index.css @@ -3,5 +3,6 @@ table tr > td:first-child {padding-left: 0;} table tr > td:last-child {padding-right: 0;} .modulegroup {font-weight:bold; padding-top:8px; border-top:1px solid #ddd;} td.w-200px a:hover {font-weight:bold;} -.w-350px{width:350px;} -.module-col{padding-bottom:30px;} +.w-350px {width:350px;} +.module-col {padding-bottom:30px;} +.with-list a {white-space: nowrap;} diff --git a/module/editor/js/index.js b/module/editor/js/index.js index c2b1ddc184..379148968f 100644 --- a/module/editor/js/index.js +++ b/module/editor/js/index.js @@ -1,12 +1,12 @@ $(function() { - var showHeight = $('#main').height() - $('#mainMenu').height() - 40; - $('#editWin').height(showHeight); - $('#extendWin').height(showHeight); + var showHeight = $('#main').height() - $('#mainMenu').height() - 40; + $('#editWin').height(showHeight); + $('#extendWin').height(showHeight); - $('.side-col a').click(function() - { - $('.side-col a.active').removeClass('active'); - $(this).addClass('active'); - }); + $('.side-col a').click(function() + { + $(this).closest('.side-col').find('a.text-primary').removeClass('text-primary'); + $(this).addClass('text-primary'); + }); }); diff --git a/module/editor/view/extend.html.php b/module/editor/view/extend.html.php index 291d2e6af4..7e6ab7964b 100644 --- a/module/editor/view/extend.html.php +++ b/module/editor/view/extend.html.php @@ -38,6 +38,19 @@ $(function() $this.addClass('expandable-hitarea').removeClass('collapsable-hitarea'); } }); + + $('.has-list a').on('click', function() + { + $('.has-list a.text-primary').removeClass('text-primary active'); + $(this).addClass('text-primary active'); + }).on('mouseover', function() + { + $('.has-list a:not(.active)').removeClass('text-primary'); + $(this).addClass('text-primary'); + }).on('mouseout', function() + { + if(!$(this).hasClass('active')) $(this).removeClass('text-primary'); + }); }); diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 6e9c1acd9a..2781a20e1a 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -156,7 +156,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
'> - product->common;?> + productCommon;?> division) ? "disabled='disabled'" : '';?> id, "class='form-control chosen' $disabled onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?> division) echo html::hidden("products[$i]", $product->id);?> @@ -209,7 +209,7 @@
- product->common;?> + productCommon;?>
diff --git a/module/execution/view/edit.html.php b/module/execution/view/edit.html.php index 36ff1b00c6..9e25912f80 100644 --- a/module/execution/view/edit.html.php +++ b/module/execution/view/edit.html.php @@ -170,7 +170,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
'> - product->common;?> + productCommon;?> type == 'stage' and !$execution->division) ? "disabled='disabled'" : '';?> id, "class='form-control chosen' $disabled onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?> type == 'stage' and !$execution->division) echo html::hidden("products[$i]", $product->id);?> @@ -221,7 +221,7 @@
- product->common;?> + productCommon;?>
@@ -261,7 +261,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
'> - product->common;?> + productCommon;?> model == 'waterfall' or $project->model == 'waterfallplus') ? "disabled='disabled'" : '';?> id, "class='form-control chosen' $disabled onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?> type == 'stage' and !$project->division) echo html::hidden("products[$i]", $product->id);?> diff --git a/module/execution/view/preview.html.php b/module/execution/view/preview.html.php index 1f99b97981..47e628880d 100644 --- a/module/execution/view/preview.html.php +++ b/module/execution/view/preview.html.php @@ -97,13 +97,13 @@ $dataType = ''; - - - + + + - - + +
stage == 'developing' ? "checked" : ''?> id="story3developing">stage == 'developed' ? "checked" : ''?> id="story3developed">stage == 'testing' ? "checked" : ''?> id="story3testing">
stage == 'developing' ? "checked" : ''?> id="storyid;?>developing">stage == 'developed' ? "checked" : ''?> id="storyid;?>developed">stage == 'testing' ? "checked" : ''?> id="storyid;?>testing">
stage == 'tested' ? "checked" : ''?> id="story3tested">stage == 'verified' ? "checked" : ''?> id="story3verified">stage == 'tested' ? "checked" : ''?> id="storyid;?>tested">stage == 'verified' ? "checked" : ''?> id="storyid;?>verified">
@@ -171,13 +171,13 @@ $dataType = ''; - - - + + + - - + +


diff --git a/module/gitlab/view/importissue.html.php b/module/gitlab/view/importissue.html.php index ffa10a48f5..8f949fdf11 100644 --- a/module/gitlab/view/importissue.html.php +++ b/module/gitlab/view/importissue.html.php @@ -31,7 +31,7 @@ gitlab->gitlabIssue;?> gitlab->objectType;?> - product->common;?> + productCommon;?> execution->common;?> diff --git a/module/product/control.php b/module/product/control.php index f112722ee9..32126a6b54 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -1305,8 +1305,8 @@ class product extends control $actionURL = $this->createLink('product', 'all', "browseType=bySearch&orderBy=order_asc&queryID=myQueryID"); $this->product->buildProductSearchForm($param, $actionURL); - $this->view->title = $this->lang->product->common; - $this->view->position[] = $this->lang->product->common; + $this->view->title = $this->lang->productCommon; + $this->view->position[] = $this->lang->productCommon; $this->view->recTotal = $pager->recTotal; $this->view->productStats = $productStats; diff --git a/module/product/model.php b/module/product/model.php index 5494bb053d..74b667c58c 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -661,7 +661,7 @@ class productModel extends model if($currentModule == 'bug' and $currentMethod == 'edit') $currentMethod = 'browse'; if($currentMethod == 'report') $currentMethod = 'browse'; - $currentProductName = $this->lang->product->common; + $currentProductName = $this->lang->productCommon; if($productID) { $currentProduct = $this->getById($productID); diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index 86aaf07843..f80ecd3e8b 100755 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -156,7 +156,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
'> - product->common;?> + productCommon;?> id, "class='form-control chosen' onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?>
@@ -193,7 +193,7 @@
- product->common;?> + productCommon;?> diff --git a/module/project/view/edit.html.php b/module/project/view/edit.html.php index a97248f3e5..bd7095d889 100755 --- a/module/project/view/edit.html.php +++ b/module/project/view/edit.html.php @@ -158,7 +158,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
'> - product->common;?> + productCommon;?> id, "class='form-control chosen' onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?>
diff --git a/module/upgrade/control.php b/module/upgrade/control.php index 2c793d1d08..e4f05f1f68 100644 --- a/module/upgrade/control.php +++ b/module/upgrade/control.php @@ -199,7 +199,7 @@ class upgrade extends control $this->locate(inlink('afterExec', "fromVersion=$fromVersion")); } - $this->view->result = 'fail'; + $this->view->result = 'sqlFail'; $this->view->errors = $this->upgrade->getError(); $this->display(); } diff --git a/module/upgrade/lang/de.php b/module/upgrade/lang/de.php index b06b2555e9..bcec6dfe5a 100644 --- a/module/upgrade/lang/de.php +++ b/module/upgrade/lang/de.php @@ -52,7 +52,8 @@ $lang->upgrade->upgradingTips = 'The upgrade is in progress, please be patient. $lang->upgrade->forbiddenExt = 'Die Erweiterung ist nicht kompatibel mit der Upgradeversion. Sie wurde deaktiviert:'; $lang->upgrade->updateFile = 'Updateinformation wurden hinzugefügt.'; $lang->upgrade->noticeSQL = 'Your database is inconsistent with the standard and it failed to fix it. Please run the following SQL and refresh.'; -$lang->upgrade->afterDeleted = 'File is not deleted. Please refresh after you delete it.'; +$lang->upgrade->afterExec = 'Please modify the database manually according to the above error information, and refresh after the modification!'; +$lang->upgrade->afterExec = 'Please manually modify the database according to the above error information, and refresh after modifiy!'; $lang->upgrade->mergeProgram = 'Data Merge'; $lang->upgrade->mergeTips = 'Data Migration Tips'; $lang->upgrade->toPMS15Guide = 'ZenTao open source version 15 upgrade'; diff --git a/module/upgrade/lang/en.php b/module/upgrade/lang/en.php index c6ea735fbb..280a397b05 100644 --- a/module/upgrade/lang/en.php +++ b/module/upgrade/lang/en.php @@ -53,6 +53,7 @@ $lang->upgrade->forbiddenExt = 'The extension is incompatible with the version $lang->upgrade->updateFile = 'File information has to be updated.'; $lang->upgrade->noticeSQL = 'Your database is inconsistent with the standard and it failed to fix it. Please run the following SQL and refresh.'; $lang->upgrade->afterDeleted = 'Please execute commands to delete the files. Please refresh after you delete them.'; +$lang->upgrade->afterExec = 'Please modify the database manually according to the above error information, and refresh after the modification!'; $lang->upgrade->mergeProgram = 'Data Merge'; $lang->upgrade->mergeTips = 'Data Migration Tips'; $lang->upgrade->toPMS15Guide = 'ZenTao open source version 15 upgrade'; diff --git a/module/upgrade/lang/fr.php b/module/upgrade/lang/fr.php index a4bf3fad58..b30d76fc91 100644 --- a/module/upgrade/lang/fr.php +++ b/module/upgrade/lang/fr.php @@ -53,6 +53,7 @@ $lang->upgrade->forbiddenExt = 'Cette extension est incompatible avec la versi $lang->upgrade->updateFile = "Le fichier information a besoin d'une mise à jour."; $lang->upgrade->noticeSQL = 'Votre base de donnée est inconsistente avec le standard et il y a eu un échec pour la corriger. Exécutez la commande SQL suivante et rafraichissez.'; $lang->upgrade->afterDeleted = "Le fichier n'est pas supprimé. Recommencez après l'avoir supprimé."; +$lang->upgrade->afterExec = 'Please modify the database manually according to the above error information, and refresh after the modification!'; $lang->upgrade->mergeProgram = 'Data Merge'; $lang->upgrade->mergeTips = 'Data Migration Tips'; $lang->upgrade->toPMS15Guide = 'ZenTao open source version 15 upgrade'; diff --git a/module/upgrade/lang/zh-cn.php b/module/upgrade/lang/zh-cn.php index 90f853a94c..df6e47fb3d 100644 --- a/module/upgrade/lang/zh-cn.php +++ b/module/upgrade/lang/zh-cn.php @@ -53,6 +53,7 @@ $lang->upgrade->forbiddenExt = '以下插件与新版本不兼容,已经自 $lang->upgrade->updateFile = '需要更新附件信息。'; $lang->upgrade->noticeSQL = '检查到你的数据库跟标准不一致,尝试修复失败。请执行以下SQL语句,再刷新页面检查。'; $lang->upgrade->afterDeleted = '请执行上面命令删除文件, 删除后刷新!'; +$lang->upgrade->afterExec = '请根据以上报错信息手动修改数据库,修改后刷新!'; $lang->upgrade->mergeProgram = '数据迁移'; $lang->upgrade->mergeTips = '数据迁移提示'; $lang->upgrade->toPMS15Guide = '禅道开源版15版本升级'; diff --git a/module/upgrade/view/execute.html.php b/module/upgrade/view/execute.html.php index 510af10659..be3dbb927f 100644 --- a/module/upgrade/view/execute.html.php +++ b/module/upgrade/view/execute.html.php @@ -16,13 +16,13 @@ upgrade->result;?>
- - + +