mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
fix l11n call
This commit is contained in:
parent
eda9e0a53e
commit
cb7863bb79
|
|
@ -529,6 +529,13 @@ class Task implements \JsonSerializable
|
||||||
return $this->taskElements;
|
return $this->taskElements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get task elements in inverted order.
|
||||||
|
*
|
||||||
|
* @return TaskElement[]
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function invertTaskElements() : array
|
public function invertTaskElements() : array
|
||||||
{
|
{
|
||||||
return \array_reverse($this->taskElements);
|
return \array_reverse($this->taskElements);
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td data-label="<?= $this->getHtml('Tag'); ?>">
|
<td data-label="<?= $this->getHtml('Tag'); ?>">
|
||||||
<?php $tags = $task->getTags(); foreach ($tags as $tag) : ?>
|
<?php $tags = $task->getTags(); foreach ($tags as $tag) : ?>
|
||||||
<a href="<?= $url; ?>">
|
<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>
|
</a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
<td data-label="<?= $this->getHtml('Creator'); ?>">
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php $tags = $task->getTags(); foreach ($tags as $tag) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user