task_create.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <html>
  2. <body>
  3. <h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
  4. <ul>
  5. <li>
  6. <?= t('Created:').' '.$this->dt->datetime($task['date_creation']) ?>
  7. </li>
  8. <?php if ($task['date_due']): ?>
  9. <li>
  10. <strong><?= t('Due date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
  11. </li>
  12. <?php endif ?>
  13. <?php if (! empty($task['creator_username'])): ?>
  14. <li>
  15. <?= t('Created by %s', $task['creator_name'] ?: $task['creator_username']) ?>
  16. </li>
  17. <?php endif ?>
  18. <li>
  19. <strong>
  20. <?php if (! empty($task['assignee_username'])): ?>
  21. <?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?>
  22. <?php else: ?>
  23. <?= t('There is nobody assigned') ?>
  24. <?php endif ?>
  25. </strong>
  26. </li>
  27. <li>
  28. <?= t('Column on the board:') ?>
  29. <strong><?= $this->text->e($task['column_title']) ?></strong>
  30. </li>
  31. <li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
  32. <?php if (! empty($task['category_name'])): ?>
  33. <li>
  34. <?= t('Category:') ?> <strong><?= $this->text->e($task['category_name']) ?></strong>
  35. </li>
  36. <?php endif ?>
  37. </ul>
  38. <?php if (! empty($task['description'])): ?>
  39. <h2><?= t('Description') ?></h2>
  40. <?= $this->text->markdown($task['description'], true) ?>
  41. <?php endif ?>
  42. <?= $this->render('notification/footer', array('task' => $task)) ?>
  43. </body>
  44. </html>