From 7bb909dfe4b1c067f9dad172f75bea3d2647ecc3 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Wed, 29 May 2024 00:37:56 -0400 Subject: [PATCH] Add link for recording --- src/Entity/Note.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Entity/Note.php b/src/Entity/Note.php index 8e5dd60..421bfa0 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -169,7 +169,13 @@ class Note implements JsonSerializable { return "id}')\">". $this->title. - ""; + "". + ( + $this->recording ? "
". + "". + "". + "" : null + ); } public function toTableRow(): string @@ -186,6 +192,7 @@ class Note implements JsonSerializable { return [ 'id' => $this->getId(), + 'link' => $this->toLink(), 'title' => $this->getTitle(), 'date' => $this->getDate(), 'passage' => $this->getPassage(),