Template helpers refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<h2><?= Helper\escape($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
@@ -25,19 +25,19 @@
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Column on the board:') ?>
|
||||
<strong><?= Helper\escape($task['column_title']) ?></strong>
|
||||
<strong><?= $this->e($task['column_title']) ?></strong>
|
||||
</li>
|
||||
<li><?= t('Task position:').' '.Helper\escape($task['position']) ?></li>
|
||||
<li><?= t('Task position:').' '.$this->e($task['position']) ?></li>
|
||||
<?php if ($task['category_name']): ?>
|
||||
<li>
|
||||
<?= t('Category:') ?> <strong><?= Helper\escape($task['category_name']) ?></strong>
|
||||
<?= t('Category:') ?> <strong><?= $this->e($task['category_name']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
<?php if (! empty($task['description'])): ?>
|
||||
<h2><?= t('Description') ?></h2>
|
||||
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
|
||||
<?= $this->markdown($task['description']) ?: t('There is no description.') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= Helper\template('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
Reference in New Issue
Block a user