1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:35:56 +00:00

article note format updates

This commit is contained in:
Andrew Dolgov
2018-12-06 20:55:51 +03:00
parent 75666ac7ab
commit 4cbc62d2a5
8 changed files with 36 additions and 19 deletions

View File

@@ -909,9 +909,18 @@ class Article extends Handler_Protected {
static function format_article_note($id, $note, $allow_edit = true) {
$str = "<div class='articleNote' onclick=\"Plugins.Note.edit($id)\">
<div class='noteEdit' onclick=\"Plugins.Note.edit($id)\">".
($allow_edit ? __('(edit note)') : "")."</div>$note</div>";
if ($allow_edit) {
$onclick = "onclick='Plugins.Note.edit($id)'";
$note_class = 'editable';
} else {
$onclick = '';
$note_class = '';
}
return "<div class='article-note $note_class'>
<i class='material-icons'>note</i>
<div $onclick class='body'>$note</div>
</div>";
return $str;
}