*finish task#786

This commit is contained in:
areyou123456
2012-05-19 01:00:05 +00:00
parent c9ab51ef95
commit 598c563477
4 changed files with 64 additions and 56 deletions
+2
View File
@@ -19,6 +19,8 @@ $lang->build->ajaxGetProjectBuilds = 'API:Project builds';
$lang->build->confirmDelete = "Are sure to delete this build?";
$lang->build->basic Info='Basic Info';
$lang->build->id = 'ID';
$lang->build->product = 'Product';
$lang->build->project = 'Project';
+2
View File
@@ -19,6 +19,8 @@ $lang->build->ajaxGetProjectBuilds = '接口:项目版本列表';
$lang->build->confirmDelete = "您确认删除该版本吗?";
$lang->build->basicInfo ='基本信息';
$lang->build->id = 'ID';
$lang->build->product = '产品';
$lang->build->project = '项目';
+2
View File
@@ -19,6 +19,8 @@ $lang->build->ajaxGetProjectBuilds = '介面:項目版本列表';
$lang->build->confirmDelete = "您確認刪除該版本嗎?";
$lang->build->basicInfo ='基本信息';
$lang->build->id = 'ID';
$lang->build->product = '產品';
$lang->build->project = '項目';
+58 -56
View File
@@ -11,36 +11,27 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<table class='table-1'>
<table class='cont-rt5'>
<caption><?php echo $lang->build->view;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->build->product;?></th>
<td><?php echo $build->productName;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->name;?></th>
<td class='<?php if($build->deleted) echo 'deleted';?>'><?php echo $build->name;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->builder;?></th>
<td><?php echo $users[$build->builder];?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->date;?></th>
<td><?php echo $build->date;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->scmPath;?></th>
<td><?php strpos($build->scmPath, 'http') === 0 ? printf(html::a($build->scmPath)) : printf($build->scmPath);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->filePath;?></th>
<td><?php strpos($build->filePath, 'http') === 0 ? printf(html::a($build->filePath)) : printf($build->filePath);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->stories;?></th>
<tr valign='top'>
<td>
<table class='table-1 fixed'>
<fieldset>
<legend><?php echo $lang->build->desc;?></legend>
<div class='content'><?php echo $build->desc;?></div>
</fieldset>
<?php include '../../common/view/action.html.php';?>
<div class='a-center f-16px strong'>
<?php
$browseLink = $this->session->buildList ? $this->session->buildList : $this->createLink('project', 'build', "projectID=$build->project");
if(!$build->deleted)
{
common::printLink('build', 'edit', "buildID=$build->id", $lang->edit);
common::printLink('build', 'delete', "buildID=$build->id", $lang->delete, 'hiddenwin');
}
echo html::a($browseLink, $lang->goback);
?>
</div>
<table class='table-1 fixed'>
<tr>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
@@ -64,11 +55,6 @@
<?php endforeach;?>
<tr><td colspan=7 class='a-left strong'><?php echo sprintf($lang->build->finishStories, count($stories));?></td></tr>
</table>
</td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->bugs;?></th>
<td>
<table class='table-1 fixed'>
<tr>
<th class='w-id'><?php echo $lang->idAB;?></th>
@@ -89,27 +75,43 @@
<td><?php echo substr($bug->openedDate, 5, 11)?></td>
<td><?php echo $users[$bug->resolvedBy];?></td>
<td><?php echo substr($bug->resolvedDate, 5, 11)?></td>
</tr>
<?php endforeach;?>
<tr><td colspan=7 class='a-left strong'><?php echo sprintf($lang->build->resolvedBugs, count($bugs));?></td></tr>
</table>
</td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->desc;?></th>
<td class='content'><?php echo $build->desc;?></td>
</tr>
</table>
<div class='a-center f-16px strong'>
<?php
$browseLink = $this->session->buildList ? $this->session->buildList : $this->createLink('project', 'build', "projectID=$build->project");
if(!$build->deleted)
{
common::printLink('build', 'edit', "buildID=$build->id", $lang->edit);
common::printLink('build', 'delete', "buildID=$build->id", $lang->delete, 'hiddenwin');
}
echo html::a($browseLink, $lang->goback);
?>
</div>
<?php include '../../common/view/action.html.php';?>
</tr>
<?php endforeach;?>
<tr><td colspan=7 class='a-left strong'><?php echo sprintf($lang->build->resolvedBugs, count($bugs));?></td></tr>
</table>
</td>
<td class="divider"></td>
<td class="side">
<fieldset>
<legend><?php echo $lang->build->basicInfo?></legend>
<table class='table-1 a-left'>
<tr>
<th width='25%' class='a-right'><?php echo $lang->build->product;?></th>
<td><?php echo $build->productName;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->name;?></th>
<td class='<?php if($build->deleted) echo 'deleted';?>'><?php echo $build->name;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->builder;?></th>
<td><?php echo $users[$build->builder];?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->date;?></th>
<td><?php echo $build->date;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->scmPath;?></th>
<td><?php strpos($build->scmPath, 'http') === 0 ? printf(html::a($build->scmPath)) : printf($build->scmPath);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->build->filePath;?></th>
<td><?php strpos($build->filePath, 'http') === 0 ? printf(html::a($build->filePath)) : printf($build->filePath);?></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<?php include '../../common/view/footer.html.php';?>