fix tag-lists

This commit is contained in:
Dennis Eichhorn 2024-04-07 18:11:04 +00:00
parent d852591d83
commit 3ca3585769

View File

@ -51,12 +51,14 @@ foreach ($this->data as $controller) :
</a> </a>
<td class="sm-hidden"> <td class="sm-hidden">
<?php if (!empty($data['tags'])) : ?> <?php if (!empty($data['tags'])) : ?>
<div class="tag-list">
<?php foreach ($data['tags'] as $tag) : ?> <?php foreach ($data['tags'] as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"> <span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
<?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?> <?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?>
<?= $this->printHtml($tag->getL11n()); ?> <?= $this->printHtml($tag->getL11n()); ?>
</span> </span>
<?php endforeach; ?> <?php endforeach; ?>
</div>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>