* adjust the bug view.
This commit is contained in:
@@ -143,12 +143,15 @@ class project extends control
|
||||
}
|
||||
|
||||
/* 浏览某一个项目下面的bug。*/
|
||||
public function bug($projectID = 0, $orderBy = 'status|desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
|
||||
public function bug($projectID = 0, $orderBy = 'status,id|desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
|
||||
{
|
||||
/* 加载bug和user模块。*/
|
||||
$this->loadModel('bug');
|
||||
$this->loadModel('user');
|
||||
|
||||
/* 登记session。*/
|
||||
$this->session->set('bugList', $this->app->getURI(true));
|
||||
|
||||
/* 公共的操作。*/
|
||||
$project = $this->commonAction($projectID);
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ function selectProject(projectID)
|
||||
<tbody>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<tr class='a-center'>
|
||||
<td class='a-right'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->id);?></td>
|
||||
<td class='a-right'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?></td>
|
||||
<td><?php echo $bug->severity?></td>
|
||||
<td width='50%' class='a-left'><?php echo $bug->title;?></td>
|
||||
<td><?php echo $users[$bug->openedBy];?></td>
|
||||
|
||||
Reference in New Issue
Block a user