This commit is contained in:
曹延义
2022-09-30 14:38:53 +08:00
parent 975e588900
commit 10fad7a82c
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -45,3 +45,4 @@ td.c-branch {overflow: hidden; text-align: left !important; text-overflow: ellip
.execution-tip {list-style: none;}
.popover.right .arrow {margin-top: -30px;}
.execution-tip li {overflow: hidden; text-overflow: unset; white-space: nowrap;}
td.execution-links {overflow: visible;}
+1 -1
View File
@@ -117,7 +117,7 @@ $(function()
$(document).on('mousedown', function(e)
{
var $target = $(e.target);
var $toggle = $target.closest('.popover, .project-popover');
var $toggle = $target.closest('.popover, .execution-popover');
if(!$toggle.length) $('.popover.right').hide();
});
});
@@ -70,7 +70,7 @@
<th class='c-story text-center'><?php echo $lang->productplan->stories;?></th>
<th class='c-bug text-center'><?php echo $lang->productplan->bugs;?></th>
<th class='c-hour text-center'><?php echo $lang->productplan->hour;?></th>
<th class='c-execution text-center'><?php echo $lang->productplan->execution;?></th>
<th class='c-execution c-actions'><?php echo $lang->productplan->execution;?></th>
<th><?php echo $lang->productplan->desc;?></th>
<?php
$extendFields = $this->productplan->getFlowExtendFields();
@@ -145,14 +145,14 @@
<td class='text-center'><?php echo $plan->stories;?></td>
<td class='text-center'><?php echo $plan->bugs;?></td>
<td class='text-center'><?php echo $plan->hour;?></td>
<td class='text-center'>
<td class='text-center c-actions execution-links'>
<?php
if(!empty($plan->projects))
{
if(count($plan->projects) === 1)
{
$executionID = key($plan->projects);
echo html::a(helper::createLink('execution', 'task', "executionID=$executionID"), '<i class="icon-run text-primary"></i>', '', "title='{$plan->projects[$executionID]->name}'");
echo html::a(helper::createLink('execution', 'task', "executionID=$executionID"), '<i class="icon-run text-primary"></i>', '', "title='{$plan->projects[$executionID]->name}' class='btn'");
}
else
{
@@ -164,7 +164,7 @@
$executionHtml .= '</ul>';
$executionHtml .= '</div>';
$executionHtml .= '</div>';
echo "<i class='icon-run execution-popover text-primary'></i>";
echo "<a href='javascript:;' class='btn execution-popover'><i class='icon-run text-primary'></i></a>";
echo $executionHtml;
}
}