From d8b1f914db7cf6504dcbb0e738c8aac0bcf84a4e Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sun, 1 Jul 2012 01:21:19 +0000 Subject: [PATCH] * Adjust the icon. --- module/project/view/bug.html.php | 31 ++++++++++++++++++++++++++----- www/theme/default/style.css | 2 +- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index 946a0c121a..aa3cf663a3 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -20,7 +20,7 @@ if($build) echo '(Build:' . $build->name . ')'; ?> -
id", $lang->bug->create);?>
+
id", ' ', '', "class='icon-green-big-bug-create' title='{$lang->bug->create}'");?>
@@ -47,12 +47,33 @@ assignedTo];?> resolvedBy];?> bug->resolutionList[$bug->resolution];?> - + id"; - if(!($bug->status == 'active' and common::printLink('bug', 'resolve', $params, $lang->bug->buttonResolve))) echo $lang->bug->buttonResolve . ' '; - if(!($bug->status == 'resolved' and common::printLink('bug', 'close', $params, $lang->bug->buttonClose))) echo $lang->bug->buttonClose . ' '; - common::printLink('bug', 'edit', $params, $lang->bug->buttonEdit); + if(common::hasPriv('bug', 'resolve')) + { + if($bug->status == 'active') + { + echo html::a($this->createLink('bug', 'resolve', $params), ' ', '', "class='icon-green-small-bug-resolve' title='{$lang->bug->buttonResolve}'", false); + } + else + { + echo " "; + } + } + + if(common::hasPriv('bug', 'close')) + { + if($bug->status == 'resolved') + { + echo html::a($this->createLink('bug', 'close', $params), ' ', '', "class='icon-green-small-bug-close' title='{$lang->bug->buttonClose}'", false); + } + else + { + echo " "; + } + } + common::printLink('bug', 'edit', $params, ' ', '', "class='icon-green-small-edit' title='{$lang->bug->buttonEdit}'", false); ?> diff --git a/www/theme/default/style.css b/www/theme/default/style.css index e1c26fed1f..20b4d07e96 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -444,7 +444,7 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table .icon-gray-small-task-close {padding:2px 8px; background:url(images/main/zt-gray.png) -100px -260px;} /* Bug icons. */ -#featurebar .f-right .icon-green-big-bug-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -200px;} +#featurebar .f-right .icon-green-big-bug-create, caption .f-right .icon-green-big-bug-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -200px;} .icon-green-small-bug-resolve {padding:2px 8px; background:url(images/main/zt-green.png) -60px -300px;} .icon-gray-small-bug-resolve {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -300px;}