getRole($thisstaff); $tasks = Task::objects() ->select_related('dept', 'staff', 'team') ->order_by('-created'); $tasks->filter(array( 'object_id' => $ticket->getId(), 'object_type' => 'T')); $count = $tasks->count(); $pageNav = new Pagenate($count,1, 100000); //TODO: support ajax based pages $showing = $pageNav->showing().' '._N('task', 'tasks', $count); ?>
'.$showing.''; } else { echo sprintf(__('%s does not have any tasks'), $ticket? 'This ticket' : 'System'); } ?>
hasPerm(Task::PERM_CREATE)) { ?> isOpen() ? 'open' : 'closed'; if ($count) Task::getAgentActions($thisstaff, array( 'container' => '#tasks_content', 'callback_url' => sprintf('ajax.php/tickets/%d/tasks', $ticket->getId()), 'morelabel' => __('Options'), 'status' => $taskStatus ? $taskStatus : '') ); ?>
getId(); $access = $task->checkStaffPerm($thisstaff); $assigned=''; if ($task->staff || $task->team) { $assigneeType = $task->staff ? 'staff' : 'team'; $icon = $assigneeType == 'staff' ? 'staffAssigned' : 'teamAssigned'; $assigned=sprintf('%s', $icon, Format::truncate($task->getAssigned(),40)); } $status = $task->isOpen() ? 'open': 'closed'; $title = Format::htmlchars(Format::truncate($task->getTitle(),40)); $threadcount = $task->getThread() ? $task->getThread()->getNumEntries() : 0; if ($access) $viewhref = sprintf('#tickets/%d/tasks/%d/view', $ticket->getId(), $id); else $viewhref = '#'; ?>
 
> getNumber(); ?> created); ?> class="no-pjax" title=" Task" href=""> 1) echo "($threadcount) ".' '; if ($row['collaborators']) echo ' '; if ($row['attachments']) echo ' '; ?> dept->getName(), 40); ?>