* fix bug gantt

This commit is contained in:
Zongjun Lan
2022-03-29 17:12:54 +08:00
parent 7c99a6153d
commit 593fcc2db6
3 changed files with 17 additions and 4 deletions
@@ -23,5 +23,4 @@ $lang->execution->icons['grouptask'] = 'sitemap';
$lang->execution->aclList['private'] = "Private (Accessible to team members and project leaders)";
$lang->execution->common = 'Project Execution';
$lang->execution->gantt = 'Gantt Chart';
$lang->execution->common = 'Project Execution';
@@ -24,4 +24,4 @@ $lang->execution->icons['grouptask'] = 'sitemap';
$lang->execution->aclList['private'] = "私有(团队成员和项目负责人可访问)";
$lang->execution->common = '项目看板';
$lang->execution->common = '项目看板';
@@ -37,8 +37,22 @@
</div>
<?php else:?>
<div class='kanban-cards'>
<?php
$kanbanview = 'kanban';
if($this->cookie->kanbanview)
{
$kanbanview = $this->cookie->kanbanview;
}
else
{
foreach (explode('|', 'kanban|task|calendar|gantt|tree|grouptask') as $view)
{
if(common::hasPriv('execution', $view)) $kanbanview = 'kanban';
}
}
?>
<?php foreach($kanbanList as $index => $kanban):?>
<div id="kanban-<?php echo $kanban->id;?>" class='kanban-card col' data-url='<?php echo $this->createLink('execution', $this->cookie->kanbanview ? $this->cookie->kanbanview : 'kanban', "kanbanID=$kanban->id");?>'>
<div id="kanban-<?php echo $kanban->id;?>" class='kanban-card col' data-url='<?php echo $this->createLink('execution', $kanbanview, "kanbanID=$kanban->id");?>'>
<div class="panel">
<div class="panel-heading">
<span class="label kanban-status-<?php echo $kanban->status;?>"><?php echo zget($lang->execution->statusList, $kanban->status);?></span>