summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-05 15:12:17 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-05 15:12:17 -0400
commit96041641949c55abf2b432bc08ea493b40dec873 (patch)
tree6c177b89d19ef4a9f14acddf19697a8bdd951247 /templates
parentfcd843bc0c2ef3163d1ecc6b036e46726a61239a (diff)
button to edit and delete feeds
Diffstat (limited to 'templates')
-rw-r--r--templates/part.feeds.php8
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