diff --git a/src/Controller/Teamer/Bookmark/IndexController.php b/src/Controller/Teamer/Bookmark/IndexController.php index e8c873a..90c6627 100644 --- a/src/Controller/Teamer/Bookmark/IndexController.php +++ b/src/Controller/Teamer/Bookmark/IndexController.php @@ -43,6 +43,7 @@ class IndexController extends AbstractController ); return $this->render('teamer/bookmark/index.html.twig', [ + 'teamer' => $teamer, 'pagination' => $pagination, ]); } diff --git a/src/Entity/Upload.php b/src/Entity/Upload.php index c10032e..2bd5cdf 100644 --- a/src/Entity/Upload.php +++ b/src/Entity/Upload.php @@ -85,6 +85,11 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface return $instance; } + public function __toString() + { + return $this->getDisplayName() ?? $this->getOriginalFilename(); + } + public function getId(): ?int { return $this->id; diff --git a/templates/teamer/bookmark/index.html.twig b/templates/teamer/bookmark/index.html.twig index f7a2f7a..9833eed 100644 --- a/templates/teamer/bookmark/index.html.twig +++ b/templates/teamer/bookmark/index.html.twig @@ -8,7 +8,7 @@
+
- - Hier kannst du den Einsatz in deinen Kalender eintragen (ICS). +