* add link stories and bugs into the view of build.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-01-02 09:15:36 +00:00
parent cf2e89aefc
commit 1fa838e6b4
8 changed files with 84 additions and 18 deletions
+9 -8
View File
@@ -46,12 +46,11 @@
<div class="w-p90">
<div class='half-left' style="height:225px; overflow-y:auto">
<table class='table-1'>
<caption>story</caption>
<tr class='colhead'>
<?php $vars = "projectID=$projectID&orderBy=%s"; ?>
<th class='w-id {sorter:false}'> <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
<th class= '{sorter:false}'> <?php common::printOrderLink('title', $orderBy, $vars, $lang->story->title);?></th>
<th class='w-100px {sorter:false}'> <?php common::printOrderLink('stage', $orderBy, $vars, $lang->story->stageAB);?></th>
<caption><?php echo $lang->build->linkStories;?></caption>
<tr>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th><?php echo $lang->story->title;?></th>
<th class='w-100px'><?php echo $lang->story->stageAB;?></th>
</tr>
<?php foreach($stories as $key => $story):?>
<?php
@@ -67,15 +66,17 @@
</div>
<div class='half-right' style="height:225px; overflow-y:auto">
<table class='table-1'>
<caption>bug</caption>
<tr class='colhead'>
<caption><?php echo $lang->build->linkBugs;?></caption>
<tr>
<th class='w-id'> <?php echo $lang->idAB;?></th>
<th><?php echo $lang->bug->title;?></th>
<th class='w-100px'><?php echo $lang->bug->status;?></th>
</tr>
<?php foreach($bugs as $bug):?>
<tr class='a-center'>
<td><input type='checkbox' name='bugs[]' value="<?php echo $bug->id;?>" checked> <?php echo sprintf('%03d', $bug->id);?></td>
<td class='a-left nobr'><?php common::printLink('bug', 'view', "bugID=$bug->id", $bug->title, '', "class='preview'");?></td>
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
</tr>
<?php endforeach;?>
</table>