Commit Graph

17 Commits

Author SHA1 Message Date
Mathias Kresin
525048bbb2 code cleanup
Add feeds only once to the feed_ids array (feed model), drop now unused select-db action.

Use $_SESSION['loggedin'] in favour of $_SESSION['user'] to reflect which information we do
expect from this session variable. Add nothing else than a flag, which indicates a logged in
user, to $_SESSION['loggedin'].

It's not necessary to know the current user name, since we do only have one user
per database. Same for the language setting. The database defines the front-end language.

Resolves bug where the password gets stored in the $_SESSION['user'] after a remember_me
login.
2015-01-28 05:24:17 +01:00
Frederic Guillot
d2cfc7fd15 Update vendor 2015-01-27 20:13:16 -05:00
Frederic Guillot
b0c1f57213 Update dependencies, enable temporary PicoFeed debug logs 2015-01-19 20:00:16 -05:00
Mathias Kresin
7c31b9fff0 update picoFeed to f3ed9fe and use icon from atom feeds as favicon 2015-01-18 15:23:11 +01:00
Mathias Kresin
db94d94de3 Improve user notice about failed feeds
Show feeds with errors always at the top and highlight them

Changes the feed order to:

1. failed
2. enabled
3. disabled

Order alphabetical within each group.

Show a warning message with a hin to the console if feeds have issues

Fixes #300, #303
2015-01-15 02:04:35 +01:00
Mathias Kresin
cfaa25f667 minor improvements
- enable debug logging for image proxy
- show enclosure image only if no article content exists
- do not store empty favicons
- fix typo in get_item_favicons (worked anyway since get_favicons
  returned all known favicons instead)
2015-01-13 20:27:33 +01:00
Frédéric Guillot
800026484c Revert commit (Do not disable feed if download failed) 2014-12-29 18:49:49 -05:00
Frédéric Guillot
75601d173c Disable invalid feeds on refresh (not found, domain inexistent...) 2014-12-26 10:50:58 -05:00
Frédéric Guillot
feb25c7552 Add favicons on the feeds page 2014-12-24 18:12:41 -05:00
Frédéric Guillot
c1d74b8332 Add favicon support 2014-12-24 17:54:27 -05:00
Frédéric Guillot
c6ed11c116 Move to Composer and update to the last version of PicoFeed 2014-12-23 21:28:26 -05:00
Frédéric Guillot
53b94d8f7b Add option to force RTL mode per feed and improve feed modification 2014-10-19 19:14:33 -04:00
Frédéric Guillot
3840a87128 Update to the last version of PicoFeed 2014-05-20 14:20:27 -04:00
Frédéric Guillot
754dcdd274 Improve pull-request for unread count for each feed 2014-02-22 19:45:02 -05:00
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
Frédéric Guillot
49583f381f Improve files organization 2014-02-08 14:13:14 -05:00
Frédéric Guillot
4fb68b9b80 Split models and controllers in different files 2013-12-22 20:55:53 -05:00