From 3f524eac6cdac79e1a63f4a36ff24ded229e3cca Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 17 Aug 2012 21:29:55 +0200 Subject: removed edit feed because it has no function --- templates/part.listfeed.php | 1 - 1 file changed, 1 deletion(-) (limited to 'templates') diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index e06dcd38c..e8d91ecb8 100644 --- a/templates/part.listfeed.php +++ b/templates/part.listfeed.php @@ -19,6 +19,5 @@ if($unreadItemsCount == 0){ echo '
  • '; echo '' . $feed->getTitle() .''; echo '' . $unreadItemsCount . ''; -echo ''; echo ''; echo '
  • '; -- cgit v1.2.3 From 4c0b359fbe2abd1b22e50221244408c9a64860d2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 18 Aug 2012 02:52:16 +0200 Subject: removed top bar above feed items, aligned the title with the star --- templates/main.php | 2 -- templates/part.items.header.php | 51 ----------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 templates/part.items.header.php (limited to 'templates') diff --git a/templates/main.php b/templates/main.php index 3ec909b7d..2855ec8b4 100644 --- a/templates/main.php +++ b/templates/main.php @@ -5,8 +5,6 @@ inc("part.items.header"); - ?>
    diff --git a/templates/part.items.header.php b/templates/part.items.header.php deleted file mode 100644 index 0a49b9e91..000000000 --- a/templates/part.items.header.php +++ /dev/null @@ -1,51 +0,0 @@ -t('Starred'); - $unreadItemCount = $itemMapper->countAllStatus($feedId, OCA\News\StatusFlag::IMPORTANT); - break; - - case -2: - $feedTitle = $l->t('New articles'); - $unreadItemCount = $itemMapper->countEveryItemByStatus(OCA\News\StatusFlag::UNREAD); - break; - - default: - $feedMapper = new OCA\News\FeedMapper(); - $feed = $feedMapper->findById($feedId); - $feedTitle = $feed->getTitle(); - $unreadItemCount = $itemMapper->countAllStatus($feedId, OCA\News\StatusFlag::UNREAD); - break; - } - - if($unreadItemCount > 0){ - $readClass = ''; - } else { - $readClass = 'all_read'; - } -} else { - $feedTitle = ''; - $unreadItemCount = 0; -} - -$showAll = OCP\Config::getUserValue(OCP\USER::getUser(), 'news', 'showAll'); - -?> - -
    - -
    -

    -
    -
    - - -
    -
    \ No newline at end of file -- cgit v1.2.3 From d3dd6fa63e7f664b0a69b66e29737a8e6768cb98 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 18 Aug 2012 03:44:54 +0200 Subject: added eyebutton --- templates/main.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main.php b/templates/main.php index 2855ec8b4..96e419eeb 100644 --- a/templates/main.php +++ b/templates/main.php @@ -5,6 +5,18 @@ t('Show everything'); + $viewButtonClass = 'show_all'; +} else { + $viewButtonImg = 'eye_unread.svg'; + $viewButtonTitle = $l->t('Show only unread'); + $viewButtonClass = 'show_unread'; +} + ?>
    @@ -18,12 +30,15 @@ if ($_['feedid']){
    • - +
    • +
    • + +
    • -- cgit v1.2.3