Added simple info page for projects

This commit is contained in:
Jan Böhmer 2022-12-18 21:58:21 +01:00
parent 855b3070bb
commit d5b1c6be0a
12 changed files with 647 additions and 76 deletions

View file

@ -65,8 +65,8 @@ class EntityColumn extends AbstractColumn
});
$resolver->setDefault('render', function (Options $options) {
return function ($value, Part $context) use ($options) {
/** @var AbstractDBElement|null $entity */
return function ($value, $context) use ($options) {
/** @var AbstractNamedDBElement|null $entity */
$entity = $this->accessor->getValue($context, $options['property']);
if (null !== $entity) {
@ -74,7 +74,7 @@ class EntityColumn extends AbstractColumn
return sprintf(
'<a href="%s">%s</a>',
$this->urlGenerator->listPartsURL($entity),
$value
$entity->getName()
);
}