1. 11 Jun, 2015 18 commits
  2. 03 Jun, 2015 1 commit
  3. 01 Jun, 2015 1 commit
  4. 29 May, 2015 1 commit
  5. 28 May, 2015 8 commits
    • azul's avatar
      Merge pull request #232 from azul/test/exception-controller · 34bd4885
      azul authored
      test exceptions controller
      34bd4885
    • azul's avatar
      test exceptions controller · 76244e02
      azul authored
      This test uses Rack::Test::Methods because the exceptions controller is usually
      triggered from the Crabgrass::PublicExceptions middleware.
      76244e02
    • azul's avatar
      Merge pull request #231 from azul/bugfix/oo-doc-icon · c348b68f
      azul authored
      icon OpenOffice docs is oo_document not oo_text
      c348b68f
    • azul's avatar
      Merge pull request #229 from azul/bugfix/error-handling · 0c71ffba
      azul authored
      bring back ErrorNotFound, drop per site i18n
      0c71ffba
    • azul's avatar
      Merge pull request #230 from azul/feature/print-url · d771920c
      azul authored
      bring back the context/page/print url - at least for wikis
      d771920c
    • azul's avatar
      bring back the context/page/print url - at least for wikis · bc72badc
      azul authored
      There's still a bunch of 404 from external links to this kind of url
      bc72badc
    • azul's avatar
      icon OpenOffice docs is oo_document not oo_text · 3be55189
      azul authored
      3be55189
    • azul's avatar
      bring back ErrorNotFound, drop per site i18n · 6f0b4b56
      azul authored
      ErrorNotFound is similar to ActiveRecord::RecordNotFound - but it allows
      specifying the type of thing that was not found for more detailed error
      messages.
      
      For the translations we use cascading translations. So say a group was not
      found... we will lookup the following:
      exception.title.group.not_found
      exception.title.not_found
      exception.not_found
      not_found
      
      For all of these %{thing} will be interpolated with a translation of :group.
      If there is no translation for the given class of things it will be an empty
      string.
      
      In order for the cascading translation to work we have do drop the support
      for site specific translations. Otherwise the lookup will start with a
      cascade from:
      site.exception.title.group.not_found
      and succeed when looking up 'not_found'.
      So it won't process the more detailed cascade correctly.
      
      Alternatively we could add the site scope last. But I think site specific
      translations are not something we will need any time soon and it adds a lot of
      complexity. Instance specific translations can easily be put in
        /extensions/locales
      and overwrite the defaults.
      6f0b4b56
  6. 26 May, 2015 5 commits
  7. 25 May, 2015 1 commit
  8. 24 May, 2015 5 commits