* Code for task#79672.

This commit is contained in:
xieqiyu
2022-12-13 17:08:30 +08:00
parent 4f02b6651a
commit 455e7af0da
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -1906,10 +1906,12 @@ class story extends control
$productStoryList = array();
$productList = array();
$ignoreTwins = array();
$twinsCount = 0;
foreach($stories as $story)
{
if(!empty($ignoreTwins) and isset($ignoreTwins[$story->id]))
{
$twinsCount ++;
unset($stories[$story->id]);
continue;
}
@@ -2019,6 +2021,7 @@ class story extends control
$this->view->storyType = $storyType;
$this->view->reasonList = $this->lang->story->reasonList;
$this->view->productStoryList = $productStoryList;
$this->view->twinsCount = $twinsCount;
$this->display();
}
+6 -1
View File
@@ -34,7 +34,12 @@
<?php foreach($stories as $storyID => $story):?>
<tr class='text-center'>
<td><?php echo $storyID . html::hidden("storyIdList[$storyID]", $storyID);?></td>
<td class='text-left'><?php echo $story->title;?></td>
<td title='<?php echo $story->title;?>' class='text-left'>
<?php echo $story->title;?>
<?php if(!empty($story->twins)):?>
<span class='label label-outline label-badge'><?php echo "{$lang->story->twins}:"?> <span class='text-blue'><?php echo $twinsCount?></span></span>
<?php endif;?>
</td>
<td class='story-<?php echo $story->status;?>'><?php echo $this->processStatus('story', $story);?></td>
<td class='reasons-td'>
<?php if($story->status == 'draft') unset($reasonList['cancel']);?>