color == '#b10b0b') $color = 'has-color red';
if($card->color == '#cfa227') $color = 'has-color yellow';
if($card->color == '#2a5f29') $color = 'has-color green';
?>
status == 'done' and $card->color != '#2a5f29') $nameColor = 'green-name';
?>
color == '#2a5f29') $labelColor = 'background-color: #FFFFFF; color: #2a5f29';
$finishLabel = $card->status == 'done' ? "
fromType)):?>
" . html::a($this->createLink('kanban', 'viewCard', "cardID=$card->id", '', true), $finishLabel . $card->name, '', "class='iframe' data-toggle='modal' data-width='80%' title='$card->name'") . '
pri;?>
estimate and $card->estimate != 0) echo "
{$card->estimate}h";?>
name) ? $card->name : $card->title;
$title = isset($card->title) ? $card->title : $name;
$delayed = '';
if($card->fromType == 'execution' or $card->fromType == 'ticket')
{
$delayed = (!empty($card->delay) or (!helper::isZeroDate($card->deadline) and helper::now() > $card->deadline)) ? "
{$lang->execution->delayed}" : '';
}
if(common::hasPriv($card->fromType, 'view') and empty($card->children)) echo "
" . html::a($this->createLink($card->fromType, 'view', "id=$card->fromID"), $name, '', " title='$title'") . "$delayed
";
if(!common::hasPriv($card->fromType, 'view') or !empty($card->children)) echo "
";
if($card->fromType == 'productplan' or $card->fromType == 'build')
{
echo "
$card->desc
";
if(!empty($card->desc)) $class .= ' has-desc';
}
echo "
";
if(isset($lang->{$card->fromType}->statusList[$card->objectStatus])) echo "
" . $lang->{$card->fromType}->statusList[$card->objectStatus] . '';
if(isset($card->date) and !helper::isZeroDate($card->date)) echo "
" . date("Y-m-d", strtotime($card->date)) . ""
?>
end) and !helper::isZeroDate($card->begin) and $card->begin != '2030-01-01' and $card->end != '2030-01-01'):?>
begin)) . $lang->kanbancard->beginAB;?>
begin) and !helper::isZeroDate($card->end) and $card->begin != '2030-01-01' and $card->end != '2030-01-01'):?>
end)) . $lang->kanbancard->deadlineAB;?>
begin) and !helper::isZeroDate($card->end) and $card->begin != '2030-01-01' and $card->end != '2030-01-01' and $card->fromType == ''):?>
begin)) . ' ~ ' . date("m/d", strtotime($card->end));?>
begin) and !helper::isZeroDate($card->end) and $card->begin != '2030-01-01' and $card->end != '2030-01-01' and $card->fromType != ''):?>
begin)) . ' ' . $lang->{$card->fromType}->to . ' ' . date("m-d", strtotime($card->end));?>
fromType == 'ticket' and !helper::isZeroDate($card->deadline) and $card->begin != '2030-01-01' and $card->end != '2030-01-01'):?>
deadline)) . ' ' . $lang->kanbancard->deadlineAB;?>
begin == '2030-01-01' or $card->end == '2030-01-01') echo '
' . $lang->{$card->fromType}->future . '';
if($card->fromType == '') $assignedToList = explode(',', $card->assignedTo);
if($card->fromType == 'execution') $assignedToList = $card->PM;
if($card->fromType == 'build') $assignedToList = $card->builder;
if($card->fromType == 'release' or $card->fromType == 'productplan') $assignedToList = $card->createdBy;
if($card->fromType == 'ticket') $assignedToList = $card->assignedTo;
$count = 0;
$members = '';
?>
$account)
{
if(!isset($users[$account]) or !isset($usersAvatar[$account]))
{
unset($assignedToList[$index]);
continue;
}
$members .= $users[$account] . ',';
}
$userCount = count($assignedToList);
?>
0):?>
2) continue;
echo html::smallAvatar(array('avatar' => $usersAvatar[$account], 'account' => $account, 'name' => $users[$account]), 'avatar-circle');
$count ++;
$class .= ' has-avatar';
}
?>
2) echo "...";?>
";
echo html::smallAvatar(array('avatar' => $usersAvatar[$assignedToList], 'account' => $assignedToList, 'name' => $users[$assignedToList]), 'avatar-circle');
echo "
";
$class .= ' has-avatar';
}
?>
performable and ($card->fromType == 'execution' or empty($card->fromType))):?>