Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-06 19:07:28 +0400
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-06 19:07:38 +0400
commitee74242775981bf04b1b57e569e483ce7724110f (patch)
treef71f75802bf7b44637c4eb63ecf5cfb7dcb67b94 /templates/main.php
parent55f828dac9c9e2b652949e2b0be8e07311b86170 (diff)
add functionality for deleting notes
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php9
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>