diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 17:22:24 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 17:22:24 -0400 |
commit | e5f291b09c4403bf5ffdd131c662f35a92ec363e (patch) | |
tree | 7e170eecc57df46d239f9a0b908a12b7163b34f1 /templates | |
parent | 96041641949c55abf2b432bc08ea493b40dec873 (diff) |
button to remove folder
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.feeds.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php index 5adb70d1c..96810992f 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -4,7 +4,11 @@ echo '<ul style="margin-left:' . 10*$depth . 'px;"> <li style="background-image:url(' . OC_Helper::imagePath('core', 'filetypes/folder.png') . '); background-repeat:no-repeat; background-position:0px 8px; padding-left: 20px; ">' . - '<span class="collapsable">' . $folder->getName() .'</span><ul>'; + '<span class="collapsable">' . $folder->getName() . '</span>'; + if ($depth != 0) { + echo '<button class="svg action" id="feeds_delete" onClick="(News.Folder.delete(' . $folder->getId(). '))" title="' . $l->t('Delete folder') . '"></button>'; + } + echo '<ul>'; $children = $folder->getChildren(); foreach($children as $child) { if ($child instanceOf OC_News_Folder){ @@ -12,7 +16,7 @@ } elseif ($child instanceOf OC_News_Feed) { echo '<li><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a>'; - echo '<button class="svg action" id="feeds_delete" title="' . $l->t('Delete feed') . '"></button>'; + echo '<button class="svg action" id="feeds_delete" onClick="(News.Feed.delete(' . $child->getId(). '))" title="' . $l->t('Delete feed') . '"></button>'; echo '<button class="svg action" id="feeds_edit" title="' . $l->t('Edit feed') . '"></button>'; echo '</li>'; } |