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
    Rodrigo Souto
     
  • 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
    Antonio Terceiro
     

23 Feb, 2016

2 commits

  • Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
    Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
    Tallys Martins
     
  • 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.
    Rodrigo Souto
     

22 Feb, 2016

5 commits


16 Feb, 2016

1 commit


11 Feb, 2016

2 commits

  • Fixes crash when processing suggest an article task
    
    - Removes an old line that was left behind during merge of support for
      different types of article. It was overriding the correct decision
      made by #article_type.
    - Defines SuggestArticle#author_name the same as the sender so
      noosfero task page doesn't crash in case the processing of the task
      throws an error, since it will try to show the author name in the
      task error page.
    
      Fixes #166
    
    See merge request !786
    Antonio Terceiro
     
  •   - Removes an old line that was left behind during merge of support for
      different types of article. It was overriding the correct decision
      made by #article_type.
      - Defines SuggestArticle#author_name the same as the sender so
      noosfero task page doesn't crash in case the processing of the task
      throws an error, since it will try to show the author name in the
      task error page.
    
      Fixes #166
    Larissa Reis
     

05 Feb, 2016

1 commit


04 Feb, 2016

1 commit


29 Dec, 2015

1 commit


12 Dec, 2015

1 commit


01 Dec, 2015

3 commits


18 Nov, 2015

1 commit

  • Custom fields can be added to any profile through the admin panel
    in the 'Fields' section. They have the same behaviour as the current
    Noosfero's fields (active, signup, required and privacy).
    
    Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
    Signed-off-by: Gustavo Coelho <gust.rod.coelho@gmail.com>
    Signed-off-by: Joenio Costa <joenio@colivre.coop.br>
    Signed-off-by: Macartur de Sousa <macartur.sc@gmail.com>
    Signed-off-by: Marcos Ramos <ms.ramos@outlook.com>
    Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com>
    Signed-off-by: Pedro de Lyra <pedrodelyra@gmail.com>
    Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
    Marcos Pereira
     

12 Nov, 2015

1 commit


03 Nov, 2015

2 commits


28 Oct, 2015

1 commit


13 Oct, 2015

1 commit

  • Signed-off-by: Victor Costa <vfcosta@gmail.com>
    Signed-off-by: Francisco Marcelo de Araújo Lima Júnior <francisco.lima-junior@serpro.gov.br>
    
    Conflicts:
    	app/controllers/my_profile/profile_design_controller.rb
    	app/helpers/boxes_helper.rb
    	app/helpers/layout_helper.rb
    	app/views/layouts/_javascript.html.erb
    	public/stylesheets/application.css
    	test/functional/environment_design_controller_test.rb
    	test/functional/profile_design_controller_test.rb
    Victor Costa
     

07 Oct, 2015

2 commits


05 Oct, 2015

1 commit


02 Oct, 2015

1 commit


26 Sep, 2015

1 commit

  •   This fixes a bug in which some pages (eg. a profile page) were visible
      to unlogged users even if the environment has enabled "show content
      only to members".
    
      The problem happened because some controllers use `before_filter
      :login_required` so they can apply it to some specific methods,
      effectively overriding the one set in `application_controller`. That
      before filter set in `application_controller` is the one used to make
      the environment private when that feature is enabled, so when a
      controller overrides it, some methods are not required login even when
      the environment is private. So I fixed the problem by using a
      different `before_filter` to take care specifically of private
      environments.
    
      Now every page requires login when an environment is private, except
      the pages in `account_controller` necessary for login and signup.
    Larissa Reis
     

24 Sep, 2015

2 commits


15 Sep, 2015

1 commit


14 Sep, 2015

1 commit

  • - Add before_filter for check permission for open edit header and footer page
    - Change environment feature name of disable_appearance to enable_appearance
    - Update cucumber test change_appearance.feature
    
    Signed-off-by: DylanGuedes <djmgguedes@gmail.com>
    Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
    Signed-off-by: Omar Junior <omarroinuj@gmail.com>
    Signed-off-by: vitorbaraujo <vitornga15@gmail.com>
    Signed-off-by: Victor Matias Navarro <victor.matias.navarro@gmail.com>
    Luciano Prestes
     

13 Sep, 2015

1 commit


11 Sep, 2015

4 commits


08 Sep, 2015

1 commit