Skip to content

Commit

Permalink
Merge branch 'testing' of https://github.com/HKFree/UserDB into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vpithart committed Dec 10, 2024
2 parents 50c493d + f2bcfb4 commit f10a7b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/model/UzivatelListGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,17 @@ public function getListOfOtherUsersGrid($presenter, $name, $loggedUser, $id, $mo

return $uidLink;
})->setSortable();
$grid->addColumnText('stitky', 'Štítky')->setSortable();
$grid->addColumnText('stitky', 'Štítky')->setCustomRender(function ($item) use ($presenter) {
$latte = new Engine();
$params = [
'stitky' => $this->stitek->getSeznamStitku(),
'stitkyUzivatele' => $this->stitekUzivatele->getStitekByUserId($item->id),
'userId' => $item->id,
];
$templatePath = __DIR__ . '/../components/UserLabelsComponent.latte';
return $latte->renderToString($templatePath, $params);

});
$grid->addColumnText('nick', 'Nick')->setSortable();

if ($canViewOrEdit) {
Expand Down

0 comments on commit f10a7b2

Please sign in to comment.