diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-06 19:07:28 +0400 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-06 19:07:38 +0400 |
commit | ee74242775981bf04b1b57e569e483ce7724110f (patch) | |
tree | f71f75802bf7b44637c4eb63ecf5cfb7dcb67b94 /templates/main.php | |
parent | 55f828dac9c9e2b652949e2b0be8e07311b86170 (diff) |
add functionality for deleting notes
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/main.php b/templates/main.php index dec38008..116cf3b4 100644 --- a/templates/main.php +++ b/templates/main.php @@ -7,11 +7,13 @@ */ +\OCP\Util::addScript('notes', 'vendor/bootstrap/tooltip'); \OCP\Util::addScript('notes', 'vendor/angular/angular'); \OCP\Util::addScript('notes', 'vendor/restangular/restangular'); \OCP\Util::addScript('notes', 'vendor/underscore/underscore'); \OCP\Util::addScript('notes', 'public/app'); +\OCP\Util::addStyle('notes', 'vendor/bootstrap/tooltip'); \OCP\Util::addStyle('notes', 'notes'); ?> @@ -38,6 +40,13 @@ <a href="#/notes/{{ note.id }}"> {{ note.title }} </a> + <span class="utils"> + <button class="svg action delete-icon" + title="<?php p($l->t('Delete note')); ?>" + notes-tooltip + data-placement="bottom" + ng-click="delete(note.id)"></button> + </span> </li> </ul> |