15 Mar, 2016
2 commits
-
The core has been refactored in order to remove HTML generation from models. On the other hand there are many plugins relying on such behaviour. This provides a failsafe in order to keep them working until the necessary refactors for each plugin do not get done.
-
Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com> Signed-off-by: Gustavo Jaruga <darkshades@gmail.com>
10 Mar, 2016
20 commits
-
It was extracted into a helper and view which are the correct handlers for such logic.
-
This is one more step into decoupling HTML generation from models. All models with such method are expected to go through this refactor.
-
This was a missing refactor from bbf064e9b984a6ca29ff543e486f5b256bc46b2d.
-
After creating the ArticleBlock view test at ff15413b2a8dca45d9f64e57270f294e351a0098 this test got broken. The root cause was the inclusion of ApplicationHelper for the article_block_test which led to `custom_options_article` for CMSHelper tests to fail as the BlogHelper (included by ApplicationHelper) was overriding the method. This has been fized by remove the include to ApplicationHelper and extract the necessary methods to separate helpers which led to two new methods for ArticleHelper and one new helper the ButtonsHelper.
-
By removing the content method, it is now necessary to turn the test into a view one using the BoxesHelper method and properly stubbing other helpers. The view required fix at the html escaping method call synthax.
-
After removing the content method it is now necessary to use BoxesHelper#render_block_content. The view required fixes as it was still supposing the old interface coupled into the model instead of receiving the model object. And it had a programming error that prevented results from getting displayed.
-
also: * rename login_block.html.erb -> login.html.erb * created symlinks for ProfileListBlock subclasses
08 Mar, 2016
5 commits
-
Closes !511
-
For example http://cirandas.net/dtygel/blog?month=10&year=2011/wp-login.php crashes on date parsing Answering request as if no date arguments were passed. Closes !419 Signed-off-by: Rodrigo Souto <rodrigo@colivre.coop.br> Signed-off-by: Braulio Bhavamitra <braulio@eita.org.br>
-
Closes !467 Signed-off-by: Braulio Bhavamitra <brauliobo@gmail.com> Signed-off-by: Rodrigo Souto <rodrigo@colivre.coop.br>
-
For profiles with specific domains registered, the navigation should use the URL for the environment, which are right the context of the navigation links Closes !484
07 Mar, 2016
1 commit
-
Also define all roles as default set for profile_members_controller.
03 Mar, 2016
1 commit
-
Signed-off-by: Gustavo Jaruga <darkshades@gmail.com> Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com>
26 Feb, 2016
1 commit
-
- Adds use of filtered members to mailing queue executed by send_mail action Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com> Signed-off-by: Michel Felipe de Oliveira Ferreira <michel.ferreira@serpro.gov.br>
25 Feb, 2016
2 commits
-
Fix article comments ordering Fix article's comments ordering bug (had wrong logic before correction) and pagination missing bug (js was overwriting pagination after ajax request). References: https://softwarepublico.gov.br/gitlab/softwarepublico/softwarepublico/issues/630 https://softwarepublico.gov.br/gitlab/softwarepublico/softwarepublico/issues/632 See merge request !792
-
Dbm private files Also rewriting the file visualization to work consistently with every file type. Here is the overall basic behavior now: * If the request is passed with view=true, content is displayed as an article content. * If the file has an inline visualization (like images) it's already displayed. * If not, a download link is displayed. * If the request is passed with view=false, the file is provided straight, without any noosfero layout being loaded. * If the file is private: * And the user accesses its public filesystem path, apache (this is done by noosfero-apache) will redirect the request to rails path so that the rails server will provide it considering appropriate permissions. * And the user accesses its rails path, rails server will provide as well. * If the file is public: * And the user accesses its public filesystem path, apache will provide the file. * And the user accesses its rails path, rails server will redirect to its public filesystem path so that apache provides the file. The feature and debian package were tested and are still available for testing on: http://private-files.dev.colivre.net See merge request !797
23 Feb, 2016
2 commits
-
Closes #167 - When a topic is created in a forum, the parent_id was not being set. Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
-
Also rewriting the file visualization to work consistently with every file type. Here is the overall basic behavior now: * If the request is passed with view=true, content is displayed as an article content. * If the file has an inline visualization (like images) it's already displayed. * If not, a download link is displayed. * If the request is passed with view=false, the file is provided straight, without any noosfero layout being loaded. * If the file is private: * And the user accesses its public filesystem path, apache (this is done by noosfero-apache) will redirect the request to rails path so that the rails server will provide it considering appropriate permissions. * And the user accesses its rails path, rails server will provide as well. * If the file is public: * And the user accesses its public filesystem path, apache will provide the file. * And the user accesses its rails path, rails server will redirect to its public filesystem path so that apache provides the file.
22 Feb, 2016
6 commits
-
Signed-off-by: Eduardo Vital <vitaldu@gmail.com> Signed-off-by: Pedro de Lyra <pedrodelyra@gmail.com>
-
Setup multi-tenancy before loading the user's session These changes avoid searching for sessions with a wrong schema in a multi domain setup. See merge request !784
-
- Every article can be followed so the user can receive notifications without having to comment on it Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com> Signed-off-by: Marcos Ramos <ms.ramos@outlook.com> Signed-off-by: Gustavo Coelho <gust.rod.coelho@gmail.com> Signed-off-by: Joenio Costa <joenio@colivre.coop.br> Signed-off-by: Carlos Purificacao <carloseugenio@gmail.com> Signed-off-by: Victor Costa <vfcosta@gmail.com> Signed-off-by: Caio SBA <caio@colivre.coop.br> Signed-off-by: Leandro Nunes dos Santos <leandro.santos@serpro.gov.br> Signed-off-by: Michel Felipe de Oliveira Ferreira <michel.ferreira@serpro.gov.br> Signed-off-by: Evandro Jr <evandrojr@gmail.com>