Commit Graph

576 Commits

Author SHA1 Message Date
Alexis Degrugillier
dd4fb519be Add an unsaved changes alert on config pages
Before, you could leave a configuration page without knowing if you saved your changes or not.
Now, there is an alert poping up if you have unsaved changes. It will ask you if you want to stay on the page and save your changes or leave the page and loose your changes.

See #739
2015-03-14 09:43:08 -04:00
Alexis Degrugillier
5b90e1f4a0 Introduce user queries objects
There is now an object to manipulate user queries. It allows to move logic to handle those from the view and the controller in the model.
Thus making the view and the controller easier to read.
I introduced a new interface to start using dependency injection. There is still some rough edges but we are moving in the right direction.
The new object is fully tested but it still need some improvements, for instance, it is still tied to the search object.
There might be a better way to do that.
2015-03-05 13:29:41 +01:00
Alexis Degrugillier
b8fd3caf83 Harmonize share configuration view.
Before, for shares that don't need options, only a button to remove it was visible. It was source of confusion for users.
I changed the look of those shares by using the same layout as others (minus the help). As there is no configuration possible for the url, the field is disabled but it is possible to change the name of the share.

See #787
2015-02-14 11:00:26 -05:00
Marien Fressinaud
b355a45c35 Change behaviour of #add_rss input.extend
UI was frustrating when input had the focus: we needed to click elsewhere to
be able to open the next dropdown.

See https://github.com/FreshRSS/FreshRSS/issues/777
2015-01-29 09:52:43 +01:00
Marien Fressinaud
01683ba136 Remove information about me and update links
FreshRSS should not be associated to me but to the community:

- Remove links to send me email or references to a "lead developer"
- Change old Github links marienfressinaud/FreshRSS to FreshRSS/FreshRSS
2015-01-27 17:19:57 +01:00
Marien Fressinaud
39b8c75c40 Password format on profile and manage user pages
Related to ec75139939
See https://github.com/FreshRSS/FreshRSS/issues/769
2015-01-26 11:48:25 +01:00
Alexandre Alapetite
2036b9aed3 Suppress possible warnings after update
Prevent JavaScript errors when the shortcuts have not been defined in
the config file.
https://github.com/FreshRSS/FreshRSS/issues/733
2015-01-20 19:54:00 +01:00
Marien Fressinaud
bf2f7176ee Improve i18n for JavaScript
notif_* messages have been moved into feedback array.
2015-01-18 12:06:40 +01:00
Marien Fressinaud
14206aca16 Improve behavior when mark as read / favorite fail
If the request fails:
- Open a notification to inform user
- Remove pending index from the pending_feeds list

Fix https://github.com/FreshRSS/FreshRSS/issues/751
2015-01-18 11:59:03 +01:00
Marien Fressinaud
f3d74b59e8 Fix a bug when default view is the global one.
If default view is "global", the popup tried to get articles on the
default view which was… "global"! Articles are present on the "normal" view
instead.
2015-01-16 23:26:29 +01:00
Marien Fressinaud
9483c6cf67 Fix bug if a shortcut is not in the initial config
A new shortcut was never saved because ConfigurationSetter never set a
shortcut which did not appear in the initial conf.
2015-01-16 23:20:59 +01:00
Marien Fressinaud
556f4ad4bf Remove restriction of 1h for update checking 2015-01-15 11:20:16 +01:00
Marien Fressinaud
2f1116818d Fix extension interface
- Seperate user and system extensions on extension/index
- extension/configure shows index page with the slider opened
  if request is done with ajax
- Reorganize some extension view files
2015-01-14 23:30:19 +01:00
Marien Fressinaud
8968288600 Fix extension API (coding style)
is_enabled() becomes isEnabled(). Sorry for this coding style mistake :s
2015-01-14 22:22:30 +01:00
Marien Fressinaud
0cba8dd691 Show current version of FRSS on the update page
See https://github.com/FreshRSS/FreshRSS/issues/699
2015-01-13 11:32:29 +01:00
Marien Fressinaud
2d1cb016ab Fix user interaction with showing password feature
Before, the password was hidden again after 2 seconds. Now, the password
is hidden when the mouse is released

Fix https://github.com/FreshRSS/FreshRSS/issues/734
2015-01-13 11:16:13 +01:00
Marien Fressinaud
03db0b5d3c Fix a bug related to sharing
$item and $feed were not existing, replaced by other names.
Introduce by the merging of dev in extension branch.
2015-01-08 21:37:59 +01:00
Marien Fressinaud
19dfef8b49 Fix bug with Minz_Translate
When a path was registered before initialization, it was not considered unless
by calling reset() method.

This is fixed now.
2015-01-08 16:32:13 +01:00
Marien Fressinaud
a3f667e586 Fix Minz_Translate::availableLanguages() method 2015-01-08 14:50:21 +01:00
Marien Fressinaud
73023bc12b Merge branch 'dev' into 252-extensions
Conflicts:
	app/FreshRSS.php
	app/Models/Configuration.php
	app/views/index/index.phtml
	app/views/index/normal.phtml
	lib/Minz/Configuration.php
	lib/Minz/Translate.php
	lib/lib_rss.php
2015-01-08 14:18:32 +01:00
Marien Fressinaud
0140448a56 Refactor FreshRSS_Share object to be more usable
- FreshRSS_Share is the only object we manipulate
- Add a way to register new share options easily
- Move some i18n keys from index.php to gen.php

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 14:59:18 +01:00
Marien Fressinaud
addcea9cd4 Fix i18n loading and availableLanguages calls
- Change the way to init i18n
- Add a availableLanguages() method to Minz_Translate

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:10:51 +01:00
Marien Fressinaud
5f9672111f Fix last calls to Minz_Configuration methods
- We have still to fix actualize_script and greader api (refactoring?)
- We have to fix the FreshRSS_Configuration calls
- We have to fix availableLanguages calls

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 20:50:58 +01:00
Marien Fressinaud
d3a93ea290 BREAKING FEATURE: Remove general in config
General attribute has been removed from system config.
Now subattributes (e.g. environment, salt, title, etc.) are directly accessible.

YOU HAVE TO FIX YOUR ./data/config.php file!

- Remove the general array
- Values inside this array must be kept
- To see what it must look like, please have a look to ./data/config.default.php
  (but keep your values!!).

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 18:53:36 +01:00
Marien Fressinaud
7cca47d1ab Change name of user configuration var in Context
- FreshRSS_Context::$conf is replaced by FreshRSS_Context::$user_conf
- Introduce FreshRSS_Context::$system_conf
- Remove FreshRSS_Configuration object

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 22:45:03 +01:00
Marien Fressinaud
51a71ec4b9 New configuration system (not working yet)
- Use only Minz_Configuration
- register() method to load a new configuration file
- get() to get a configuration
- new exceptions related to configuration
- fix a list configuration calls to have FRSS working

Current problems to resolve:

- How to handle configuration param verifications (i.e. check auth_type
  is a value from none, http_auth, persona or form)
- We must use $conf = Minz_Configuration::get('system'); $general_conf = $conf->general;
  to access global system configuration which is quite annoying. How to change that?

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 16:54:16 +01:00
Marien Fressinaud
04b9bd0b49 Fix i18n for extension system 2014-12-17 21:44:00 +01:00
Marien Fressinaud
0b89867800 Merge branch 'dev' into 252-extensions
Conflicts:
	app/i18n/en/admin.php
	app/i18n/en/feedback.php
	app/i18n/en/gen.php
	app/i18n/fr/admin.php
	app/i18n/fr/feedback.php
	app/i18n/fr/gen.php
	app/views/index/normal.phtml
2014-12-17 21:41:33 +01:00
Marien Fressinaud
930026df21 Fix bug with new file organisation
entry_bottom.phtml didn't find $feed variable. It's fixed now.
2014-12-17 21:25:20 +01:00
Marien Fressinaud
875b8a72f9 Coding style endforeach (must be avoided) 2014-12-17 21:15:24 +01:00
Marien Fressinaud
7f4ca35fc3 Fix i18n strings for sharing
Fix https://github.com/FreshRSS/FreshRSS/issues/728
2014-12-17 17:21:41 +01:00
Marien Fressinaud
67aa7e76c1 Fix strings and url on auth configuration page 2014-12-13 10:01:31 +01:00
Marien Fressinaud
bf51a8e875 Fix french i18n for install + some fixes
French is finished!
2014-12-11 22:40:07 +01:00
Marien Fressinaud
a1faa826bf Fix french i18n for last views 2014-12-11 21:44:25 +01:00
Marien Fressinaud
a84e9e50bf Fix french i18n for auth and configure views 2014-12-11 21:15:01 +01:00
Marien Fressinaud
0ee16a7d6a Fix i18n for import/export 2014-12-11 17:46:05 +01:00
Marien Fressinaud
cad4259e62 Fix i18n for subscription pages 2014-12-11 17:26:01 +01:00
Marien Fressinaud
f43b273706 Update i18n for statistics 2014-12-11 16:10:39 +01:00
Marien Fressinaud
57bffe83eb Fix i18n for index Controller
Fix strings for:

- about page
- rss and reader views
- fix title of global view
2014-12-11 00:25:02 +01:00
Marien Fressinaud
d455837c6d Fix i18n for normal view 2014-12-11 00:00:15 +01:00
Marien Fressinaud
8a40a72657 Fix i18n for logs, pagination and javascript vars
Logs first to avoid annoying message when refreshing log page
2014-12-10 23:16:12 +01:00
Marien Fressinaud
c6dfec3ad3 Add behaviour to configure action (extensions)
- Put extension configure view in dir_ext/configure.phtml
- Handle POST action in Extension->handleConfigureAction() method

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-08 12:01:47 +01:00
Marien Fressinaud
ea849d7c68 Prepare better organization of view files for exts
View files must be well-splitted to simplify work for extensions.

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-07 15:03:42 +01:00
Marien Fressinaud
5932c3427b Add entry_before_display hook
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-07 14:31:50 +01:00
Marien Fressinaud
bc81979a6b Add default behaviour for configure / remove ext
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06 17:25:01 +01:00
Marien Fressinaud
2da7c05fa6 Update i18n (extensions)
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06 17:15:20 +01:00
Marien Fressinaud
9d66462c1d Fix typo (extensions)
- change feedback.extension into feedback.extensions
- disable button is pushed by default

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06 16:48:13 +01:00
Marien Fressinaud
4c888590e6 Improve system/user types for extensions
- system extensions can only be managed by an administrator
- system extensions are loaded for all users (even if not logged)
- user extensions are loaded for logged users only
- system extensions loading is saved in global config.php file

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06 16:41:06 +01:00
Marien Fressinaud
9fc60317ee First draft for listing and manipulate extensions
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-05 14:17:02 +01:00
Alexis Degrugillier
0ad04f82ea Merge pull request #710 from FreshRSS/hide-article
Add an automatic sticky post configuration
2014-11-22 08:05:21 -05:00