* 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
+1 -4
View File
@@ -1979,7 +1979,7 @@ class projectModel extends model
if($id == 'name')
{
$class .= ' text-left';
$title = "title='{$project->name}'";
$title = "title='{$project->name} ({$this->lang->project->{$project->model}})'";
}
if($id == 'end')
@@ -2018,9 +2018,6 @@ class projectModel extends model
case 'name':
$prefix = '';
$suffix = '';
if($project->model === 'waterfall') $prefix = "<span class='project-type-label label label-outline label-warning'>{$this->lang->project->waterfall}</span> ";
if($project->model === 'scrum') $prefix = "<span class='project-type-label label label-outline label-info'>{$this->lang->project->scrum}</span> ";
if($project->model === 'kanban') $prefix = "<span class='project-type-label label label-outline label-info'>{$this->lang->project->kanban}</span> ";
if(isset($project->delay)) $suffix = "<span class='label label-danger label-badge'>{$this->lang->project->statusList['delay']}</span>";
if(!empty($suffix) or !empty($prefix)) echo '<div class="project-name' . (empty($prefix) ? '' : ' has-prefix') . (empty($suffix) ? '' : ' has-suffix') . '">';
if(!empty($prefix)) echo $prefix;