'✨', 'update' => '📝', 'comment' => '💬', 'view' => '👁️', 'assign' => '👤', 'status_change' => '🔄' ]; return $icons[$actionType] ?? '•'; } function formatAction($event) { $actions = [ 'create' => 'created this ticket', 'update' => 'updated this ticket', 'comment' => 'added a comment', 'view' => 'viewed this ticket', 'assign' => 'assigned this ticket', 'status_change' => 'changed the status' ]; return $actions[$event['action_type']] ?? $event['action_type']; } function formatDetails($details, $actionType) { if ($actionType === 'update' && is_array($details)) { $changes = []; foreach ($details as $field => $value) { if ($field === 'old_value' || $field === 'new_value') continue; $changes[] = "" . htmlspecialchars($field) . ": " . htmlspecialchars($value); } return implode(', ', $changes); } return ''; } require_once __DIR__ . '/../middleware/SecurityHeadersMiddleware.php'; require_once __DIR__ . '/../middleware/CsrfMiddleware.php'; $nonce = SecurityHeadersMiddleware::getNonce(); ?>
Loading dependencies...
Loading dependents...
No activity recorded yet.
Add Comment
Comment History