* Finish task#54469.

This commit is contained in:
leiyong
2022-05-19 05:06:43 +00:00
parent 0d88bcd390
commit 69fe59f541
3 changed files with 15 additions and 2 deletions

View File

@@ -7,3 +7,12 @@ tbody.sortable > tr > td.sort-handler .table-nest-toggle:before {cursor: pointer
label[for^="projectIdList"]:before {top: 1px; width:14px; height:14px;}
label[for^="projectIdList"]:after {width: 14px; height:14px;}
tbody.sortable > tr > td.sort-handler {color: #3c4353 !important;}
.has-prefix {position: relative; display: flex; align-items: center;}
.has-suffix > span,
.has-prefix > span {flex: none;}
.has-suffix > a {color: #0c60e1; display: inline-block; max-width: calc(100% - 50px);}
.has-prefix > a,
.has-suffix > a {max-width: calc(100% - 100px);}
.has-prefix > a {padding-left: 5px;}
.has-suffix > a {padding-right: 5px;}

View File

@@ -49,7 +49,7 @@
?>
<tr <?php echo $trAttrs;?>>
<td class='c-name text-left <?php if($canOrder) echo 'sort-handler';?>' title='<?php echo $program->name?>'>
<td class='c-name text-left <?php if($canOrder) echo 'sort-handler';?> has-prefix' title='<?php echo $program->name?>'>
<?php
$icon = '';
if($program->type == 'program') $icon = ' icon-program';
@@ -60,7 +60,11 @@
<?php if($program->type == 'program'):?>
<?php echo strpos(",{$app->user->view->programs},", ",$program->id,") !== false ? html::a($this->createLink('program', 'product', "programID=$program->id"), $program->name) : $program->name;?>
<?php else:?>
<?php echo html::a($this->createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name);?>
<?php echo html::a($this->createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name, '', 'class="text-ellipsis text-primary"');?>
<?php
$delay = helper::diffDate(helper::today(), $program->end);
if($delay > 0) echo "<span class='label label-danger label-badge'>{$lang->project->statusList['delay']}</span>";
?>
<?php endif;?>
</td>
<td class='c-status'><span class="status-program status-<?php echo $program->status?>"><?php echo zget($lang->project->statusList, $program->status, '');?></span></td>

Binary file not shown.