diff options
Diffstat (limited to 'templates/part.feeds.php')
-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 52716c804..5adb70d1c 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -1,6 +1,7 @@ <?php - function print_folder(OC_News_Folder $folder, $depth){ + $l = new OC_l10n('news'); + 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>'; @@ -10,7 +11,10 @@ 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></li>'; + 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_edit" title="' . $l->t('Edit feed') . '"></button>'; + echo '</li>'; } else { //TODO:handle error in this case |