= $this->e($task['title']) ?> (#= $task['id'] ?>)
= t('The task have been updated.') ?>
= t('List of changes') ?>
$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'], $colors_list)).'
';
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 '- '.dt('New due date: %B %e, %Y', $task['date_due']).'
';
}
break;
case 'description':
if (empty($task['description'])) {
echo '- '.t('There is no description anymore').'
';
}
break;
default:
echo '- '.t('The field "%s" have been updated', $field).'
';
}
}
?>
= t('New description') ?>
= $this->text->markdown($task['description']) ?>
= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>