Add link for recording

This commit is contained in:
Ryan Prather 2024-05-29 00:37:56 -04:00
parent 1d98940341
commit 7bb909dfe4

View File

@ -169,7 +169,13 @@ class Note implements JsonSerializable
{ {
return "<a href='#' onclick=\"retrieveNote('{$this->id}')\">". return "<a href='#' onclick=\"retrieveNote('{$this->id}')\">".
$this->title. $this->title.
"</a>"; "</a>".
(
$this->recording ? "<br/>".
"<a href='{$this->recording}' target='_blank' class='recording-link'>".
"<i class='fa fa-play-circle'></i>".
"</a>" : null
);
} }
public function toTableRow(): string public function toTableRow(): string
@ -186,6 +192,7 @@ class Note implements JsonSerializable
{ {
return [ return [
'id' => $this->getId(), 'id' => $this->getId(),
'link' => $this->toLink(),
'title' => $this->getTitle(), 'title' => $this->getTitle(),
'date' => $this->getDate(), 'date' => $this->getDate(),
'passage' => $this->getPassage(), 'passage' => $this->getPassage(),