* Code for task #70502.

This commit is contained in:
曹延义
2022-09-26 11:10:15 +08:00
parent 3f357a3799
commit b5e9d3e5ba
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -53,7 +53,6 @@
<?php
$icon = '';
if($program->type == 'program') $icon = ' icon-program';
if($program->type == 'project') $icon = ' icon-common icon-' . $program->model;
$class = $program->type == 'program' ? ' table-nest-toggle' : '';
?>
<span class="table-nest-icon icon <?php echo $class . $icon;?>"></span>
@@ -61,7 +60,8 @@
&nbsp;<span class="icon icon-cards-view" style="color: #888fa1;"></span>
<?php echo ($app->user->admin or 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, '', 'class="text-ellipsis text-primary"');?>
<?php $projectType = $lang->project->{$program->model};?>
<?php echo html::a($this->createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name, '', "class='text-ellipsis text-primary' title='{$program->name} ($projectType)'");?>
<?php
if($program->status != 'done' and $program->status != 'closed' and $program->status != 'suspended')
{