diff --git a/module/common/lang/common.php b/module/common/lang/common.php index a633d01ce2..5b63e29585 100644 --- a/module/common/lang/common.php +++ b/module/common/lang/common.php @@ -158,17 +158,19 @@ $lang->icons['unlock'] = 'unlock-alt'; $lang->icons['confirmStoryChange'] = 'search'; $lang->icons['score'] = 'tint'; -$lang->createIcons['todo'] = 'todo'; -$lang->createIcons['effort'] = 'time'; -$lang->createIcons['bug'] = 'bug'; -$lang->createIcons['story'] = 'lightbulb'; -$lang->createIcons['task'] = 'check-sign'; -$lang->createIcons['testcase'] = 'sitemap'; -$lang->createIcons['doc'] = 'doc'; -$lang->createIcons['execution'] = 'run'; -$lang->createIcons['project'] = 'project'; -$lang->createIcons['product'] = 'product'; -$lang->createIcons['program'] = 'program'; +$lang->createIcons['todo'] = 'todo'; +$lang->createIcons['effort'] = 'time'; +$lang->createIcons['bug'] = 'bug'; +$lang->createIcons['story'] = 'lightbulb'; +$lang->createIcons['task'] = 'check-sign'; +$lang->createIcons['testcase'] = 'sitemap'; +$lang->createIcons['doc'] = 'doc'; +$lang->createIcons['execution'] = 'run'; +$lang->createIcons['project'] = 'project'; +$lang->createIcons['product'] = 'product'; +$lang->createIcons['program'] = 'program'; +$lang->createIcons['kanbanspace'] = 'zone'; +$lang->createIcons['kanban'] = 'kanban'; $lang->noMenuModule = array('report', 'my', 'todo', 'effort', 'program', 'product', 'execution', 'task', 'build', 'productplan', 'project', 'projectrelease', 'projectstory', 'story', 'branch', 'release', 'attend', 'leave', 'makeup', 'overtime', 'lieu', 'custom', 'admin', 'mail', 'extension', 'dev', 'backup', 'action', 'cron', 'pssp', 'sms', 'message', 'webhook', 'search', 'score', 'stage', 'entry', 'jenkins', 'gitlab'); diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 697cd7cfd9..92982c3da3 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -313,17 +313,19 @@ $lang->exportFileTypeList['html'] = 'html'; $lang->exportTypeList['all'] = 'All Data'; $lang->exportTypeList['selected'] = 'Selected Data'; -$lang->createObjects['todo'] = 'Todo'; -$lang->createObjects['effort'] = 'Effort'; -$lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = 'Story'; -$lang->createObjects['task'] = 'Task'; -$lang->createObjects['testcase'] = 'Case'; -$lang->createObjects['execution'] = $lang->execution->common; -$lang->createObjects['project'] = 'Project'; -$lang->createObjects['product'] = 'Product'; -$lang->createObjects['program'] = 'Program'; -$lang->createObjects['doc'] = 'Doc'; +$lang->createObjects['todo'] = 'Todo'; +$lang->createObjects['effort'] = 'Effort'; +$lang->createObjects['bug'] = 'Bug'; +$lang->createObjects['story'] = 'Story'; +$lang->createObjects['task'] = 'Task'; +$lang->createObjects['testcase'] = 'Case'; +$lang->createObjects['execution'] = $lang->execution->common; +$lang->createObjects['project'] = 'Project'; +$lang->createObjects['product'] = 'Product'; +$lang->createObjects['program'] = 'Program'; +$lang->createObjects['doc'] = 'Doc'; +$lang->createObjects['kanbanspace'] = 'Space'; +$lang->createObjects['kanban'] = 'Kanban'; /* Language. */ $lang->lang = 'Language'; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 11d68180f4..42c2b72c64 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -313,17 +313,19 @@ $lang->exportFileTypeList['html'] = 'html'; $lang->exportTypeList['all'] = '全部记录'; $lang->exportTypeList['selected'] = '选中记录'; -$lang->createObjects['todo'] = '待办'; -$lang->createObjects['effort'] = '日志'; -$lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = '需求'; -$lang->createObjects['task'] = '任务'; -$lang->createObjects['testcase'] = '用例'; -$lang->createObjects['execution'] = $lang->execution->common; -$lang->createObjects['project'] = '项目'; -$lang->createObjects['product'] = '产品'; -$lang->createObjects['program'] = '项目集'; -$lang->createObjects['doc'] = '文档'; +$lang->createObjects['todo'] = '待办'; +$lang->createObjects['effort'] = '日志'; +$lang->createObjects['bug'] = 'Bug'; +$lang->createObjects['story'] = '需求'; +$lang->createObjects['task'] = '任务'; +$lang->createObjects['testcase'] = '用例'; +$lang->createObjects['execution'] = $lang->execution->common; +$lang->createObjects['project'] = '项目'; +$lang->createObjects['product'] = '产品'; +$lang->createObjects['program'] = '项目集'; +$lang->createObjects['doc'] = '文档'; +$lang->createObjects['kanbanspace'] = '空间'; +$lang->createObjects['kanban'] = '看板'; /* 语言 */ $lang->lang = 'Language'; diff --git a/module/common/model.php b/module/common/model.php index e938631628..6932fc279e 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -506,7 +506,7 @@ class commonModel extends model $createMethod = 'create'; if($objectType == 'effort') $createMethod = 'batchCreate'; - if(strpos('bug|execution', $objectType) !== false) $needPrintDivider = true; + if(strpos('|bug|execution|kanbanspace|', "|$objectType|") !== false) $needPrintDivider = true; if(common::hasPriv($objectType, $createMethod)) { @@ -566,9 +566,19 @@ class commonModel extends model case 'program': $params = "parentProgramID=0&extra=from=global"; break; + case 'kanbanspace': + $createMethod = 'createSpace'; + $isOnlyBody = true; + $attr = "class='iframe' data-width='75%'"; + break; + case 'kanban': + $isOnlyBody = true; + $attr = "class='iframe' data-width='75%'"; + break; } - $html .= '