HTML previews

This commit is contained in:
Mo Bitar
2018-10-17 13:42:24 -05:00
parent 8a537b86df
commit 87485584ec
9 changed files with 788 additions and 15 deletions

View File

@@ -61,8 +61,15 @@
.name{"ng-if" => "note.title"}
{{note.title}}
.note-preview{"ng-if" => "!ctrl.hideNotePreview"}
{{note.text}}
.note-preview{"ng-if" => "!ctrl.hideNotePreview && !note.content.hidePreview"}
.html-preview{"ng-if" => "note.content.preview_html", "ng-bind-html" => "note.content.preview_html"}
.plain-preview{"ng-if" => "!note.content.preview_html && note.content.preview_plain"} {{note.content.preview_plain}}
.default-preview{"ng-if" => "!note.content.preview_html && !note.content.preview_plain"} {{note.text}}
.preview-hidden{"ng-if" => "note.content.hidePreview && !ctrl.hideNotePreview"}
%i Preview hidden
.date.faded{"ng-if" => "!ctrl.hideDate"}
%span{"ng-if" => "ctrl.sortBy == 'client_updated_at'"} Modified {{note.updatedAtString() || 'Now'}}
%span{"ng-if" => "ctrl.sortBy != 'client_updated_at'"} {{note.createdAtString() || 'Now'}}