3
1

task_overdue.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html>
  2. <body>
  3. <h2><?= t('Overdue tasks for the project(s) "%s"', $project_name) ?></h2>
  4. <table style="font-size: .8em; table-layout: fixed; width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px;" cellpadding=5 cellspacing=1>
  5. <tr style="background: #fbfbfb; text-align: left; padding-top: .5em; padding-bottom: .5em; padding-left: 3px; padding-right: 3px;">
  6. <th style="border: 1px solid #eee;"><?= t('Id') ?></th>
  7. <th style="border: 1px solid #eee;"><?= t('Title') ?></th>
  8. <th style="border: 1px solid #eee;"><?= t('Due date') ?></th>
  9. <th style="border: 1px solid #eee;"><?= t('Project') ?></th>
  10. <th style="border: 1px solid #eee;"><?= t('Assignee') ?></th>
  11. </tr>
  12. <?php foreach ($tasks as $task): ?>
  13. <tr style="overflow: hidden; background: #fff; text-align: left; padding-top: .5em; padding-bottom: .5em; padding-left: 3px; padding-right: 3px;">
  14. <td style="border: 1px solid #eee;">#<?= $task['id'] ?></td>
  15. <td style="border: 1px solid #eee;">
  16. <?php if ($this->app->config('application_url') !== ''): ?>
  17. <?= $this->url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'])) ?>
  18. <?php else: ?>
  19. <?= $this->text->e($task['title']) ?>
  20. <?php endif ?>
  21. </td>
  22. <td style="border: 1px solid #eee;"><?= $this->dt->datetime($task['date_due']) ?></td>
  23. <td style="border: 1px solid #eee;">
  24. <?php if ($this->app->config('application_url') !== ''): ?>
  25. <?= $this->url->absoluteLink($this->text->e($task['project_name']), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
  26. <?php else: ?>
  27. <?= $this->text->e($task['project_name']) ?>
  28. <?php endif ?>
  29. </td>
  30. <td style="border: 1px solid #eee;">
  31. <?php if (! empty($task['assignee_username'])): ?>
  32. <?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?>
  33. <?php endif ?>
  34. </td>
  35. </tr>
  36. <?php endforeach ?>
  37. </table>
  38. </body>
  39. </html>