fix l11n call

This commit is contained in:
Dennis Eichhorn 2021-06-24 00:09:52 +02:00
parent eda9e0a53e
commit cb7863bb79
3 changed files with 9 additions and 2 deletions

View File

@ -529,6 +529,13 @@ class Task implements \JsonSerializable
return $this->taskElements;
}
/**
* Get task elements in inverted order.
*
* @return TaskElement[]
*
* @since 1.0.0
*/
public function invertTaskElements() : array
{
return \array_reverse($this->taskElements);

View File

@ -70,7 +70,7 @@ echo $this->getData('nav')->render(); ?>
<td data-label="<?= $this->getHtml('Tag'); ?>">
<?php $tags = $task->getTags(); foreach ($tags as $tag) : ?>
<a href="<?= $url; ?>">
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= $tag->icon !== null ? '<i class="' . $this->printHtml($tag->icon ?? '') . '"></i>' : ''; ?><?= $this->printHtml($tag->getTitle()); ?></span>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= $tag->icon !== null ? '<i class="' . $this->printHtml($tag->icon ?? '') . '"></i>' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
</a>
<?php endforeach; ?>
<td data-label="<?= $this->getHtml('Creator'); ?>">

View File

@ -98,7 +98,7 @@ echo $this->getData('nav')->render(); ?>
<?php endif; ?>
<?php $tags = $task->getTags(); foreach ($tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= $tag->icon !== null ? '<i class="' . $this->printHtml($tag->icon ?? '') . '"></i>' : ''; ?><?= $this->printHtml($tag->getTitle()); ?></span>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= $tag->icon !== null ? '<i class="' . $this->printHtml($tag->icon ?? '') . '"></i>' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
<?php endforeach; ?>
</div>
</div>