summaryrefslogtreecommitdiffstats
path: root/templates/part.listfeed.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-30 19:31:09 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-01 00:31:38 +0200
commitbe192931ce450ea6c5310bf858517ef391a2a2b3 (patch)
tree2a2937e9fd72c3d7b1291b3db9bd4e4f4e47993b /templates/part.listfeed.php
parentf19d8f0e1399a7da1beff6df5282a0d8991d1852 (diff)
merged
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r--templates/part.listfeed.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php
index 0d343d3a9..c8d468675 100644
--- a/templates/part.listfeed.php
+++ b/templates/part.listfeed.php
@@ -10,14 +10,11 @@ if ($favicon == null) {
$favicon = OCP\Util::imagePath('core', 'actions/public.svg');
}
-if($unreadItemsCount == 0){
- $allReadClass = 'all_read';
-} else {
- $allReadClass = '';
-}
-
-echo '<li class="feed" data-id="' . $feed->getId() . '" style="background-image: url(' . $favicon . ');">';
-echo '<a href="#" " class="' . $allReadClass . '">' . htmlspecialchars_decode($feed->getTitle()) .'</a>';
- echo '<span class="unreaditemcounter ' . $allReadClass . '">' . $unreadItemsCount . '</span>';
-echo '<button class="svg action feeds_delete" onClick="(News.Feed.delete(' . $feed->getId(). '))" title="' . $l->t('Delete feed') . '"></button>';
+echo '<li class="feed" data-id="' . $feed->getId() . '">';
+ echo '<a style="background-image: url(' . $favicon . ');" href="#" class="title">' . htmlspecialchars_decode($feed->getTitle()) .'</a>';
+ echo '<span class="unread_items_counter">' . $unreadItemsCount . '</span>';
+ echo '<span class="buttons">';
+ echo '<button class="svg action feeds_delete" title="' . $l->t('Delete feed') . '"></button>';
+ echo '<button class="svg action feeds_markread" title="' . $l->t('Mark all read') . '"></button>';
+ echo '</span>';
echo '</li>';