From 8720e886e8d6984fa83d0110dbe24461779836b4 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Thu, 1 Dec 2016 11:23:04 +0800 Subject: [PATCH] * adjust task #2696. --- module/bug/css/browse.css | 2 + module/bug/view/browse.html.php | 19 ++++----- module/product/css/browse.css | 2 + module/product/view/browse.html.php | 49 ++++++++++++------------ module/project/css/task.css | 2 + module/project/view/taskheader.html.php | 18 ++++----- module/testcase/css/browse.css | 2 + module/testcase/view/caseheader.html.php | 17 ++++---- 8 files changed, 60 insertions(+), 51 deletions(-) diff --git a/module/bug/css/browse.css b/module/bug/css/browse.css index ad9760e3e5..828be685ff 100644 --- a/module/bug/css/browse.css +++ b/module/bug/css/browse.css @@ -16,3 +16,5 @@ #treebox{position:fixed;margin-left:20px;} .outer.hide-side #treebox{margin-left:0px;} + +#createActionMenu .btn{color: #fff!important; text-shadow: 0 -1px 0 rgba(0,0,0,.2)!important; background-color: #d2322d!important; border-color: #bd2d29!important;} diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 13ac5d7571..c914b0e0fc 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -62,24 +62,25 @@ js::set('bugBrowseType', ($browseType == 'bymodule' and $this->session->bugBrows
-
- -
-
-
- - -
+
+ createLink('tutorial', 'wizard', "module=story&method=create¶ms=$wizardParams"), "" . $lang->story->create, '', 'create-story-btn'); + } + else + { + $misc = common::hasPriv('story', 'create') ? "class='btn'" : "class='btn disabled'"; + $link = common::hasPriv('story', 'create') ? $this->createLink('story', 'create', "productID=$productID&branch=$branch&moduleID=$moduleID") : '#'; + echo html::a($link, "" . $lang->story->create, '', $misc); + } + ?> + +
'>
diff --git a/module/project/css/task.css b/module/project/css/task.css index 720ed1ad17..3e60ee765d 100644 --- a/module/project/css/task.css +++ b/module/project/css/task.css @@ -24,4 +24,6 @@ #taskTree{position:fixed;margin-left:20px;} .outer.hide-side #taskTree{margin-left:0px;} +#createActionMenu .btn{color: #fff!important; text-shadow: 0 -1px 0 rgba(0,0,0,.2)!important; background-color: #d2322d!important; border-color: #bd2d29!important;} + tbody > tr > td > .btn-icon {margin-right: 2px} diff --git a/module/project/view/taskheader.html.php b/module/project/view/taskheader.html.php index 22964e4fac..33b780d9df 100644 --- a/module/project/view/taskheader.html.php +++ b/module/project/view/taskheader.html.php @@ -121,17 +121,17 @@
-
- -