diff options
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r-- | templates/part.listfeed.php | 17 |
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>'; |