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

8 commits


22 Feb, 2016

19 commits


21 Feb, 2016

6 commits


19 Feb, 2016

2 commits


18 Feb, 2016

3 commits