看板初始化提交
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<?php if (! empty($comment['username'])): ?>
|
||||
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
|
||||
<?php else: ?>
|
||||
<h3><?= t('New comment') ?></h3>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->text->markdown($comment['comment'], true) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Comment removed') ?></h3>
|
||||
|
||||
<?= $this->text->markdown($comment['comment'], true) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Comment updated') ?></h3>
|
||||
|
||||
<?= $this->text->markdown($comment['comment'], true) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= t('You were mentioned in a comment on the task #%d', $task['id']) ?></h2>
|
||||
|
||||
<p><?= $this->text->e($task['title']) ?></p>
|
||||
|
||||
<?= $this->text->markdown($comment['comment'], true) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<hr/>
|
||||
Kanboard
|
||||
|
||||
<?php if ($this->app->config('application_url') != ''): ?>
|
||||
<?php if (isset($task['id'])): ?>
|
||||
- <?= $this->url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'])) ?>
|
||||
<?php endif ?>
|
||||
- <?= $this->url->absoluteLink(t('view the board on Kanboard'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('New sub-task') ?></h3>
|
||||
|
||||
<ul>
|
||||
<li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= t($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<li>
|
||||
<?= t('Time tracking:') ?>
|
||||
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Subtask removed') ?></h3>
|
||||
|
||||
<ul>
|
||||
<li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= t($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Sub-task updated') ?></h3>
|
||||
|
||||
<ul>
|
||||
<li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= t($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<?php if (! empty($subtask['time_spent']) || ! empty($subtask['time_estimated'])): ?>
|
||||
<li>
|
||||
<?= t('Time tracking:') ?>
|
||||
<?php if (! empty($subtask['time_spent'])): ?>
|
||||
<?= t('%sh spent', n($subtask['time_spent'])) ?>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<strong>
|
||||
<?php if ($task['assignee_username']): ?>
|
||||
<?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?>
|
||||
<?php else: ?>
|
||||
<?= t('There is nobody assigned') ?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?php if (! empty($task['description'])): ?>
|
||||
<h2><?= t('Description') ?></h2>
|
||||
<?= $this->text->markdown($task['description'], true) ?: t('There is no description.') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('The task #%d has been closed.', $task['id']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Created:').' '.$this->dt->datetime($task['date_creation']) ?>
|
||||
</li>
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= t('Due date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($task['creator_username'])): ?>
|
||||
<li>
|
||||
<?= t('Created by %s', $task['creator_name'] ?: $task['creator_username']) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
<strong>
|
||||
<?php if (! empty($task['assignee_username'])): ?>
|
||||
<?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?>
|
||||
<?php else: ?>
|
||||
<?= t('There is nobody assigned') ?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
<?php if (! empty($task['category_name'])): ?>
|
||||
<li>
|
||||
<?= t('Category:') ?> <strong><?= $this->text->e($task['category_name']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
<?php if (! empty($task['description'])): ?>
|
||||
<h2><?= t('Description') ?></h2>
|
||||
<?= $this->text->markdown($task['description'], true) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('New attachment added "%s"', $file['name']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('Attachment removed "%s"', $file['name']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p>
|
||||
<?= e('This task is now linked to the task %s with the relation "%s"',
|
||||
$this->url->absoluteLink(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id'])),
|
||||
e($task_link['label'])) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p>
|
||||
<?= e('The link with the relation "%s" to the task %s has been removed',
|
||||
e($task_link['label']),
|
||||
$this->url->absoluteLink(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id']))) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('Task #%d "%s" has been moved to the project "%s"', $task['id'], $task['title'], $task['project_name']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?php if ($task['swimlane_id'] == 0): ?>
|
||||
<?= t('The task has been moved to the first swimlane') ?>
|
||||
<?php else: ?>
|
||||
<?= t('The task has been moved to another swimlane:') ?>
|
||||
<strong><?= $this->text->e($task['swimlane_name']) ?></strong>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('The task #%d has been opened.', $task['id']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= t('Overdue tasks for the project(s) "%s"', $project_name) ?></h2>
|
||||
|
||||
<table style="font-size: .8em; table-layout: fixed; width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px;" cellpadding=5 cellspacing=1>
|
||||
<tr style="background: #fbfbfb; text-align: left; padding-top: .5em; padding-bottom: .5em; padding-left: 3px; padding-right: 3px;">
|
||||
<th style="border: 1px solid #eee;"><?= t('Id') ?></th>
|
||||
<th style="border: 1px solid #eee;"><?= t('Title') ?></th>
|
||||
<th style="border: 1px solid #eee;"><?= t('Due date') ?></th>
|
||||
<th style="border: 1px solid #eee;"><?= t('Project') ?></th>
|
||||
<th style="border: 1px solid #eee;"><?= t('Assignee') ?></th>
|
||||
</tr>
|
||||
|
||||
<?php foreach ($tasks as $task): ?>
|
||||
<tr style="overflow: hidden; background: #fff; text-align: left; padding-top: .5em; padding-bottom: .5em; padding-left: 3px; padding-right: 3px;">
|
||||
<td style="border: 1px solid #eee;">#<?= $task['id'] ?></td>
|
||||
<td style="border: 1px solid #eee;">
|
||||
<?php if ($this->app->config('application_url') !== ''): ?>
|
||||
<?= $this->url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'])) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->text->e($task['title']) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td style="border: 1px solid #eee;"><?= $this->dt->datetime($task['date_due']) ?></td>
|
||||
<td style="border: 1px solid #eee;">
|
||||
<?php if ($this->app->config('application_url') !== ''): ?>
|
||||
<?= $this->url->absoluteLink($this->text->e($task['project_name']), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->text->e($task['project_name']) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td style="border: 1px solid #eee;">
|
||||
<?php if (! empty($task['assignee_username'])): ?>
|
||||
<?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<?= $this->render('task/changes', array('changes' => $changes, 'task' => $task, 'public' => true)) ?>
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2><?= t('You were mentioned in the task #%d', $task['id']) ?></h2>
|
||||
<p><?= $this->text->e($task['title']) ?></p>
|
||||
|
||||
<h2><?= t('Description') ?></h2>
|
||||
<?= $this->text->markdown($task['description'], true) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task)) ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user