Add link for recording
This commit is contained in:
parent
1d98940341
commit
7bb909dfe4
@ -169,7 +169,13 @@ class Note implements JsonSerializable
|
||||
{
|
||||
return "<a href='#' onclick=\"retrieveNote('{$this->id}')\">".
|
||||
$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
|
||||
@ -186,6 +192,7 @@ class Note implements JsonSerializable
|
||||
{
|
||||
return [
|
||||
'id' => $this->getId(),
|
||||
'link' => $this->toLink(),
|
||||
'title' => $this->getTitle(),
|
||||
'date' => $this->getDate(),
|
||||
'passage' => $this->getPassage(),
|
||||
|
Loading…
Reference in New Issue
Block a user