* @package bug * @version $Id$ * @link http://www.zentao.net */ ?>
|
fetch('file', 'printFiles', array('files' => $bug->files, 'fieldset' => 'true'));?>
deleted)
{
if(common::hasPriv('bug', 'confirmBug'))
{
if($bug->status == 'active' and $bug->confirmed == 0)
{
echo html::a($this->inLink('confirmBug', $params), $lang->bug->buttonConfirm);
}
else
{
echo $lang->bug->buttonConfirm . ' ';
}
}
common::printLink('bug', 'assignTo', $params, $lang->bug->buttonAssign);
if(common::hasPriv('bug', 'resolve'))
{
if($bug->status == 'active')
{
echo html::a($this->inLink('resolve', $params), $lang->bug->buttonResolve);
}
else
{
echo $lang->bug->buttonResolve . ' ';
}
}
if(common::hasPriv('bug', 'close'))
{
if($bug->status == 'resolved')
{
echo html::a($this->inLink('close', $params), $lang->bug->buttonClose);
}
else
{
echo $lang->bug->buttonClose . ' ';
}
}
if(common::hasPriv('bug', 'activate'))
{
if($bug->status == 'closed' or $bug->status == 'resolved')
{
echo html::a($this->inLink('activate', $params), $lang->bug->buttonActivate);
}
else
{
echo $lang->bug->buttonActivate . ' ';
}
}
if(common::hasPriv('bug', 'confirmBug') or common::hasPriv('bug', 'assignTo') or common::hasPriv('bug', 'resolve') or common::hasPriv('bug', 'close') or common::hasPriv('bug', 'activate'))
{
echo "";
}
if(common::hasPriv('story', 'create'))
{
if($bug->status == 'active')
{
echo html::a($this->createLink('story', 'create', "product=$bug->product&module=0&story=0&project=0&bugID=$bug->id"), $lang->bug->toStory);
}
else
{
echo $lang->bug->toStory . ' ';
}
}
common::printLink('testcase', 'create', $convertParams, $lang->bug->buttonCreateTestcase);
if(common::hasPriv('story', 'create') or common::hasPriv('testcase', 'create'))
{
echo "";
}
common::printLink('bug', 'edit', $params, ' ', '', "class='icon-green-big-edit' title={$lang->bug->edit}");
if(common::hasPriv('bug', 'edit')) echo html::a('#comment', ' ', '', "class='icon-green-big-comment' title={$lang->comment} onclick='setComment()'");
common::printLink('bug', 'create', $copyParams, ' ', '', "class='icon-green-big-copy' title={$lang->copy}");
common::printLink('bug', 'delete', $params, ' ', 'hiddenwin', "class='icon-green-big-delete' title={$lang->delete}");
if(common::hasPriv('bug', 'edit') or common::hasPriv('bug', 'create') or common::hasPriv('bug', 'delete'))
{
echo "";
}
}
echo html::a($browseLink, ' ', '', "class='icon-green-big-goback' title={$lang->goback}");
?>
|