+ add colorbox to view of stories and bugs in build and release.
This commit is contained in:
4
module/build/js/common.js
Normal file
4
module/build/js/common.js
Normal file
@@ -0,0 +1,4 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("a.preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:false});
|
||||
})
|
||||
@@ -59,7 +59,7 @@
|
||||
?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='stories[]' value="<?php echo $story->id;?>" <?php if($story->stage == 'developed') echo 'checked';?>> <?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title, '', "class='preview'");?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
</tr>
|
||||
@@ -75,9 +75,10 @@
|
||||
<th class='w-100px'><?php echo $lang->bug->status;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='stories[]' value="<?php echo $story->id;?>" <?php if(strpos($build->stories, $story->id) !== false) echo 'checked';?>> <?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink, $story->title, '', "class='preview'");?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
</tr>
|
||||
@@ -75,9 +75,10 @@
|
||||
<th class='w-100px'><?php echo $lang->bug->status;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='bugs[]' value="<?php echo $bug->id;?>" <?php if(strpos($build->bugs, $bug->id) !== false) echo '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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<th class='rowhead'><?php echo $lang->build->stories;?></th>
|
||||
<td>
|
||||
<div style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->idAB;?></th>
|
||||
<th class='w-pri'><?php echo $lang->priAB;?></th>
|
||||
@@ -52,11 +52,11 @@
|
||||
<th class='w-100px'><?php echo $lang->story->stageAB;?></th>
|
||||
</tr>
|
||||
<?php foreach($stories as $storyID => $story):?>
|
||||
<?php $storyLink = $this->createLink('story', 'view', "storyID=$storyID");?>
|
||||
<?php $storyLink = $this->createLink('story', 'view', "storyID=$story->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td><?php echo $lang->story->priList[$story->pri];?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
@@ -71,7 +71,7 @@
|
||||
<th class='rowhead'><?php echo $lang->build->bugs;?></th>
|
||||
<td>
|
||||
<div style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<tr>
|
||||
<th class='w-id'> <?php echo $lang->idAB;?></th>
|
||||
<th><?php echo $lang->bug->title;?></th>
|
||||
@@ -82,9 +82,10 @@
|
||||
<th class='w-date'><?php echo $lang->bug->resolvedDateAB;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><?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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
<td><?php echo $users[$bug->openedBy];?></td>
|
||||
<td><?php echo substr($bug->openedDate, 5, 11)?></td>
|
||||
|
||||
10
module/release/js/common.js
Normal file
10
module/release/js/common.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function loadStoriesAndBugs(buildID,productID)
|
||||
{
|
||||
link = createLink('release', 'ajaxGetStoriesAndBugs', 'buildID=' + buildID + '&productID=' + productID);
|
||||
$('#linkStoriesAndBugs').load(link);
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("a.preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:false});
|
||||
})
|
||||
@@ -1,5 +0,0 @@
|
||||
function loadStoriesAndBugs(buildID,productID)
|
||||
{
|
||||
link = createLink('release', 'ajaxGetStoriesAndBugs', 'buildID=' + buildID + '&productID=' + productID);
|
||||
$('#linkStoriesAndBugs').load(link);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
function loadStoriesAndBugs(buildID,productID)
|
||||
{
|
||||
link = createLink('release', 'ajaxGetStoriesAndBugs', 'buildID=' + buildID + '&productID=' + productID);
|
||||
$('#linkStoriesAndBugs').load(link);
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
<td>
|
||||
<div class="w-p90">
|
||||
<div class='half-left' style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->release->linkStories;?></caption>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->idAB;?></th>
|
||||
@@ -14,7 +14,7 @@
|
||||
<?php $storyLink = $this->createLink('story', 'view', "storyID=$storyID");?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='stories[]' value="<?php echo $storyID;?>" <?php if($story->stage == 'developed') echo 'checked';?>> <?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td id='preview<?php echo $story->id;?>' class='a-left nobr'><?php echo html::a($storyLink, $story->title, '', "class='preview'");?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
</tr>
|
||||
@@ -22,7 +22,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class='half-right' style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->release->linkBugs;?></caption>
|
||||
<tr>
|
||||
<th class='w-id'> <?php echo $lang->idAB;?></th>
|
||||
@@ -30,9 +30,10 @@
|
||||
<th class='w-100px'><?php echo $lang->bug->status;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<td>
|
||||
<div class="w-p90">
|
||||
<div class='half-left' style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->release->linkStories;?></caption>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->idAB;?></th>
|
||||
@@ -47,7 +47,7 @@
|
||||
?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='stories[]' value="<?php echo $story->id;?>" <?php if(strpos($release->stories, $story->id) !== false) echo 'checked';?>> <?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink, $story->title, '', "class='preview'");?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
<td><?php echo $lang->story->stageList[$story->stage];?></td>
|
||||
</tr>
|
||||
@@ -55,7 +55,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class='half-right' style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->release->linkBugs;?></caption>
|
||||
<tr>
|
||||
<th class='w-id'> <?php echo $lang->idAB;?></th>
|
||||
@@ -63,9 +63,10 @@
|
||||
<th class='w-100px'><?php echo $lang->bug->status;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><input type='checkbox' name='bugs[]' value="<?php echo $bug->id;?>" <?php if(strpos($release->bugs, $bug->id) !== false) echo '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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<th class='rowhead'><?php echo $lang->release->stories;?></th>
|
||||
<td>
|
||||
<div style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<tr>
|
||||
<th class='w-id'><?php echo $lang->idAB;?></th>
|
||||
<th class='w-pri'><?php echo $lang->priAB;?></th>
|
||||
@@ -44,11 +44,11 @@
|
||||
<th class='w-100px'><?php echo $lang->story->stageAB;?></th>
|
||||
</tr>
|
||||
<?php foreach($stories as $storyID => $story):?>
|
||||
<?php $storyLink = $this->createLink('story', 'view', "storyID=$storyID");?>
|
||||
<?php $storyLink = $this->createLink('story', 'view', "storyID=$story->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo sprintf('%03d', $story->id);?></td>
|
||||
<td><?php echo $lang->story->priList[$story->pri];?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
|
||||
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
<td><?php echo $story->estimate;?></td>
|
||||
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
@@ -63,7 +63,7 @@
|
||||
<th class='rowhead'><?php echo $lang->release->bugs;?></th>
|
||||
<td>
|
||||
<div style="height:225px; overflow-y:auto">
|
||||
<table class='table-1'>
|
||||
<table class='table-1 fixed'>
|
||||
<tr>
|
||||
<th class='w-id'> <?php echo $lang->idAB;?></th>
|
||||
<th><?php echo $lang->bug->title;?></th>
|
||||
@@ -74,9 +74,10 @@
|
||||
<th class='w-date'><?php echo $lang->bug->resolvedDateAB;?></th>
|
||||
</tr>
|
||||
<?php foreach($bugs as $bug):?>
|
||||
<?php $bugLink = $this->createLink('bug', 'view', "bugID=$bug->id");?>
|
||||
<tr class='a-center'>
|
||||
<td><?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 class='a-left nobr'><?php echo html::a($bugLink, $bug->title, '', "class='preview'");?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
<td><?php echo $users[$bug->openedBy];?></td>
|
||||
<td><?php echo substr($bug->openedDate, 5, 11)?></td>
|
||||
|
||||
Reference in New Issue
Block a user