* Fix bug #30004.
This commit is contained in:
@@ -2274,13 +2274,15 @@ class projectModel extends model
|
||||
}
|
||||
break;
|
||||
case 'name':
|
||||
$prefix = '';
|
||||
$suffix = '';
|
||||
$prefix = '';
|
||||
$suffix = '';
|
||||
$projectIcon = '';
|
||||
if(isset($project->delay)) $suffix = "<span class='label label-danger label-badge'>{$this->lang->project->statusList['delay']}</span>";
|
||||
$projectType = $project->model == 'scrum' ? 'sprint' : $project->model;
|
||||
if(!empty($suffix) or !empty($prefix)) echo '<div class="project-name' . (empty($prefix) ? '' : ' has-prefix') . (empty($suffix) ? '' : ' has-suffix') . '">';
|
||||
if(!empty($prefix)) echo $prefix;
|
||||
echo html::a($projectLink, "<i class='text-muted icon icon-{$projectType}'></i> " . $project->name, '', "class='text-ellipsis text-primary'");
|
||||
if($this->config->vision == 'rnd') $projectIcon = "<i class='text-muted icon icon-{$projectType}'></i> ";
|
||||
echo html::a($projectLink, $projectIcon . $project->name, '', "class='text-ellipsis text-primary'");
|
||||
if(!empty($suffix)) echo $suffix;
|
||||
if(!empty($suffix) or !empty($prefix)) echo '</div>';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user