diff --git a/module/common/lang/common.php b/module/common/lang/common.php index c165aa44c8..1829c6b860 100644 --- a/module/common/lang/common.php +++ b/module/common/lang/common.php @@ -151,4 +151,16 @@ $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'] = 's'; +$lang->createIcons['task'] = 't'; +$lang->createIcons['testcase'] = 'c'; +$lang->createIcons['execution'] = 'run'; +$lang->createIcons['project'] = 'project'; +$lang->createIcons['product'] = 'product'; +$lang->createIcons['program'] = 'program'; +$lang->createIcons['doc'] = 'w'; + $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 842b57b74a..4629c078ac 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -289,6 +289,18 @@ $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'] = $lang->projectCommon; +$lang->createObjects['product'] = 'Product'; +$lang->createObjects['program'] = 'Program'; +$lang->createObjects['doc'] = 'Doc'; + /* Language. */ $lang->lang = 'Language'; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 69e9399599..dbca309cd3 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -289,6 +289,18 @@ $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->projectCommon; +$lang->createObjects['product'] = '产品'; +$lang->createObjects['program'] = '项目集'; +$lang->createObjects['doc'] = '文档'; + /* 语言 */ $lang->lang = 'Language'; diff --git a/module/common/model.php b/module/common/model.php index c3e24687e9..94dc8c07e2 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -342,6 +342,64 @@ class commonModel extends model } } + /** + * Print create button list. + * + * @static + * @access public + * @return void + */ + public static function printCreateList() + { + global $app, $config, $lang; + + $html = ""; + $html .= "
"; + $html .= "
"; + $html .= "
"; + echo $html; + } + /** * Print about bar. * diff --git a/module/common/view/header.html.php b/module/common/view/header.html.php index 8084267eeb..56b30ec87d 100755 --- a/module/common/view/header.html.php +++ b/module/common/view/header.html.php @@ -19,6 +19,7 @@ include 'chosen.html.php';
diff --git a/www/theme/default/style.css b/www/theme/default/style.css index e8dfefbc80..0ba0feefbc 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -42,3 +42,9 @@ a.showMoreImage:hover {opacity: 1;} .table-actions .btn {background: #78bdf5; color: #fff; border-color: #78bdf5} .table-actions > .btn-group:first-child > .btn:first-child {border-right: 1px solid rgba(255,255,255,0.2);} .table-footer .checked+div .btn, .table-actions .btn:hover {background: #16a8f8; border-color: #16a8f8} + +#userMenu>ul>li {margin-right: 10px;} +.icon-plus-solid-circle:before {font-size: 30px; color: #3b92f7;} +.create-list {min-width: 120px !important;} +.create-list>li>a {padding-left: 35px !important;} +.create-list>li>a>.icon {left: 5px !important;}