36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
.section.notes
|
|
.content
|
|
.section-title-bar#notes-title-bar
|
|
.title {{ctrl.tag.title}} notes
|
|
.add-button{"ng-click" => "ctrl.createNewNote()"} +
|
|
%br
|
|
.filter-section
|
|
%input.filter-bar{"select-on-click" => "true", "ng-model" => "ctrl.noteFilter.text", "placeholder" => "Search", "ng-change" => "ctrl.filterTextChanged()", "lowercase" => "true"}
|
|
.section-menu.tag-menu-bar
|
|
%ul.nav.nav-pills
|
|
%li.dropdown
|
|
%a.dropdown-toggle{"ng-click" => "ctrl.showMenu = !ctrl.showMenu"}
|
|
Sort
|
|
%span.caret
|
|
%span.sr-only
|
|
|
|
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark{"ng-if" => "ctrl.showMenu"}
|
|
%li
|
|
%a.text{"ng-click" => "ctrl.selectedMenuItem(); ctrl.selectedSortByCreated()"}
|
|
%span.top.mt-5.mr-5{"ng-if" => "ctrl.sortBy == 'created_at'"} ✓
|
|
By date added
|
|
%li
|
|
%a.text{"ng-click" => "ctrl.selectedMenuItem(); ctrl.selectedSortByUpdated()"}
|
|
%span.top.mt-5.mr-5{"ng-if" => "ctrl.sortBy == 'updated_at'"} ✓
|
|
By date modified
|
|
|
|
.scrollable
|
|
.infinite-scroll{"infinite-scroll" => "ctrl.paginate()", "can-load" => "true", "threshold" => "200"}
|
|
.note{"ng-repeat" => "note in (ctrl.sortedNotes = (ctrl.tag.notes | filter: ctrl.filterNotes | orderBy: ctrl.sortBy:true | limitTo:ctrl.notesToDisplay))",
|
|
"ng-click" => "ctrl.selectNote(note)", "ng-class" => "{'selected' : ctrl.selectedNote == note}"}
|
|
.name{"ng-if" => "note.title"}
|
|
{{note.title}}
|
|
.note-preview
|
|
{{note.text}}
|
|
.date {{(note.created_at | appDateTime) || 'Now'}}
|