subtask_update.php 1.0 KB

123456789101112131415161718192021222324252627
  1. <html>
  2. <body>
  3. <h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
  4. <h3><?= t('Sub-task updated') ?></h3>
  5. <ul>
  6. <li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
  7. <li><?= t('Status:') ?> <?= t($subtask['status_name']) ?></li>
  8. <li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
  9. <?php if (! empty($subtask['time_spent']) || ! empty($subtask['time_estimated'])): ?>
  10. <li>
  11. <?= t('Time tracking:') ?>
  12. <?php if (! empty($subtask['time_spent'])): ?>
  13. <?= t('%sh spent', n($subtask['time_spent'])) ?>
  14. <?php endif ?>
  15. <?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
  16. <?php if (! empty($subtask['time_estimated'])): ?>
  17. <?= t('%sh estimated', n($subtask['time_estimated'])) ?>
  18. <?php endif ?>
  19. </li>
  20. <?php endif ?>
  21. </ul>
  22. <?= $this->render('notification/footer', array('task' => $task)) ?>
  23. </body>
  24. </html>