diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 19:46:55 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 19:46:55 -0400 |
commit | e4b145726f00dc57b04998a28153fb0ff887ad13 (patch) | |
tree | 855234b02e64232ed6f54657221f86b49da06b67 /templates | |
parent | e5f291b09c4403bf5ffdd131c662f35a92ec363e (diff) |
improves delete feed feature
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.feeds.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php index 96810992f..adcbe8411 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -5,19 +5,22 @@ 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>'; +/* 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){ print_folder($child, $depth+1); } - elseif ($child instanceOf OC_News_Feed) { - echo '<li><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a>'; + elseif ($child instanceOf OC_News_Feed) { //onhover $(element).attr('id', 'newID'); + + echo '<li class="feeds_list"><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a>'; 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 '<button class="svg action" id="feeds_edit" title="' . $l->t('Edit feed') . '"></button>'; echo '</li>'; } else { |