miniflux-legacy/controllers
Philip Walden 8422e62abc Fulfills enhnacement request fguillot/miniflux #155
Inserts a (unread/total)" items count in front of each subcription
on the feeds page.

models/feed.php adds two functions: get_feed_unread_counts(), get_all_w_counts().
get_feed_unread_counts - returns either an array of (unread/total) counts indexed
by feed id or a singl (unread/total) for a specific id.
get_all_w_counts() returns the same as get_all() but appends items_unread and
items_total columns.

controller/feed.php modifies Router\post_action('refresh-feed',function() to
retrun the (unread/total) count in the retruned ajax json array.
Router\get_action('feeds',function() was modified to call get_all_w_counts().

templates/feeds.php was modified to insert the (unread/total) count into the
span id="loading-feed-" such that is can be updated after a refresh.

assets/js/feed.js was modified to to have the Update and hideRefreshIcon
update the returned (unread/total) amounts in the "loading-feed" span.
2014-02-22 11:00:49 -08:00
..
.htaccess Add autoflush value 'immediately' and improve gitignore 2013-12-22 21:25:54 -05:00
bookmark.php Improve files organization 2014-02-08 14:13:14 -05:00
common.php Improve files organization 2014-02-08 14:13:14 -05:00
config.php Improve files organization 2014-02-08 14:13:14 -05:00
console.php Split models and controllers in different files 2013-12-22 20:55:53 -05:00
feed.php Fulfills enhnacement request fguillot/miniflux #155 2014-02-22 11:00:49 -08:00
history.php Add an option to choose where to be redirected when there is nothing to read 2013-12-23 13:33:16 -05:00
item.php Improve files organization 2014-02-08 14:13:14 -05:00
user.php Fix Mozilla Persona login 2013-12-22 21:43:29 -05:00