Helper refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<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>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Comment updated') ?></h3>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><?= t('You were mentioned in a comment on the task #%d', $task['id']) ?></h2>
|
||||
|
||||
<p><?= $this->e($task['title']) ?></p>
|
||||
<p><?= $this->text->e($task['title']) ?></p>
|
||||
|
||||
<?= $this->text->markdown($comment['comment']) ?>
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('New sub-task') ?></h3>
|
||||
|
||||
<ul>
|
||||
<li><?= t('Title:') ?> <?= $this->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= $this->e($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= $this->text->e($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<li>
|
||||
<?= t('Time tracking:') ?>
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<strong><?= $this->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<strong><?= $this->text->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Sub-task updated') ?></h3>
|
||||
|
||||
<ul>
|
||||
<li><?= t('Title:') ?> <?= $this->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= $this->e($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<li><?= t('Title:') ?> <?= $this->text->e($subtask['title']) ?></li>
|
||||
<li><?= t('Status:') ?> <?= $this->text->e($subtask['status_name']) ?></li>
|
||||
<li><?= t('Assignee:') ?> <?= $this->text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?></li>
|
||||
<li>
|
||||
<?= t('Time tracking:') ?>
|
||||
<?php if (! empty($subtask['time_spent'])): ?>
|
||||
<strong><?= $this->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||
<strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($subtask['time_estimated'])): ?>
|
||||
<strong><?= $this->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<strong><?= $this->text->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('The task #%d have been closed.', $task['id']) ?></p>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
@@ -25,12 +25,12 @@
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->e($task['column_title']) ?></strong>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->e($task['position']) ?></li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
<?php if (! empty($task['category_name'])): ?>
|
||||
<li>
|
||||
<?= t('Category:') ?> <strong><?= $this->e($task['category_name']) ?></strong>
|
||||
<?= t('Category:') ?> <strong><?= $this->text->e($task['category_name']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('New attachment added "%s"', $file['name']) ?></p>
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->e($task['column_title']) ?></strong>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->e($task['position']) ?></li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->e($task['column_title']) ?></strong>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->e($task['position']) ?></li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
@@ -6,14 +6,14 @@
|
||||
<?= t('The task have been moved to the first swimlane') ?>
|
||||
<?php else: ?>
|
||||
<?= t('The task have been moved to another swimlane:') ?>
|
||||
<strong><?= $this->e($task['swimlane_name']) ?></strong>
|
||||
<strong><?= $this->text->e($task['swimlane_name']) ?></strong>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= $this->e($task['column_title']) ?></strong>
|
||||
<strong><?= $this->text->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.$this->e($task['position']) ?></li>
|
||||
<li><?= t('Task position:').' '.$this->text->e($task['position']) ?></li>
|
||||
</ul>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p><?= t('The task #%d have been opened.', $task['id']) ?></p>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<li>
|
||||
(<strong>#<?= $task['id'] ?></strong>)
|
||||
<?php if ($application_url): ?>
|
||||
<a href="<?= $this->url->href('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', true) ?>"><?= $this->e($task['title']) ?></a>
|
||||
<a href="<?= $this->url->href('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', true) ?>"><?= $this->text->e($task['title']) ?></a>
|
||||
<?php else: ?>
|
||||
<?= $this->e($task['title']) ?>
|
||||
<?= $this->text->e($task['title']) ?>
|
||||
<?php endif ?>
|
||||
(<?= $this->dt->date($task['date_due']) ?>)
|
||||
<?php if ($task['assignee_username']): ?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<?= $this->render('task/changes', array('changes' => $changes, 'task' => $task)) ?>
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><?= t('You were mentioned in the task #%d', $task['id']) ?></h2>
|
||||
<p><?= $this->e($task['title']) ?></p>
|
||||
<p><?= $this->text->e($task['title']) ?></p>
|
||||
|
||||
<h2><?= t('Description') ?></h2>
|
||||
<?= $this->text->markdown($task['description']) ?>
|
||||
|
||||
Reference in New Issue
Block a user