diff options
author | Teddy Wing | 2015-01-24 10:42:20 -0500 |
---|---|---|
committer | Teddy Wing | 2015-01-24 10:42:20 -0500 |
commit | 08b6f4f8ee8823512ab7d5d4d13998f7d6cbfe46 (patch) | |
tree | 435e5725a1d79c943541c46e4a2620a9ea3f492a | |
parent | 154fb936beb820d5e8db616899a6a95bc8d1c080 (diff) | |
download | Notes-angular-demo-08b6f4f8ee8823512ab7d5d4d13998f7d6cbfe46.tar.bz2 |
main view: Make current note appear active in sidebar
Highlight the note we're currently editing so we know which one it is.
-rw-r--r-- | app/views/home/main.html.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/home/main.html.erb b/app/views/home/main.html.erb index 610d86f..5117084 100644 --- a/app/views/home/main.html.erb +++ b/app/views/home/main.html.erb @@ -27,6 +27,7 @@ <div class="sidebar position-fixed min-height-100%"> <div ng-repeat="note in noteService.notes"> <a href="#" class="sidebar-link display-block padding-13" + ng-class="{ active: noteService.current_note === note }" ng-click="noteService.get_note(note)" ng-bind="note.title"></a> <a href="#" class="delete-link display-none"><span>×</span></a> |