$value) {
switch ($field) {
case 'title':
echo '- '.t('New title: %s', $task['title']).'
';
break;
case 'owner_id':
if (empty($task['owner_id'])) {
echo '- '.t('The task is not assigned anymore').'
';
} else {
echo '- '.t('New assignee: %s', $task['assignee_name'] ?: $task['assignee_username']).'
';
}
break;
case 'category_id':
if (empty($task['category_id'])) {
echo '- '.t('There is no category now').'
';
} else {
echo '- '.t('New category: %s', $task['category_name']).'
';
}
break;
case 'color_id':
echo '- '.t('New color: %s', $this->text->in($task['color_id'], $this->task->getColors())).'
';
break;
case 'score':
echo '- '.t('New complexity: %d', $task['score']).'
';
break;
case 'date_due':
if (empty($task['date_due'])) {
echo '- '.t('The due date have been removed').'
';
} else {
echo '- '.t('New due date: ').$this->dt->date($task['date_due']).'
';
}
break;
case 'description':
if (empty($task['description'])) {
echo '- '.t('There is no description anymore').'
';
}
break;
case 'recurrence_status':
case 'recurrence_trigger':
case 'recurrence_factor':
case 'recurrence_timeframe':
case 'recurrence_basedate':
case 'recurrence_parent':
case 'recurrence_child':
echo '- '.t('Recurrence settings have been modified').'
';
break;
case 'time_spent':
echo '- '.t('Time spent changed: %sh', $task['time_spent']).'
';
break;
case 'time_estimated':
echo '- '.t('Time estimated changed: %sh', $task['time_estimated']).'
';
break;
case 'date_started':
if ($value != 0) {
echo '- '.t('Start date changed: ').$this->dt->datetime($task['date_started']).'
';
}
break;
default:
echo '- '.t('The field "%s" have been updated', $field).'
';
}
}
?>
= t('The description has been modified:') ?>
= $this->text->markdown($task['description'], true) ?>
= $this->text->markdown($task['description']) ?>