1. 30 Jun, 2018 1 commit
  2. 29 Jun, 2018 1 commit
  3. 26 Jun, 2018 1 commit
    • Sean McGivern's avatar
      Fix performance bottleneck when rendering large wiki pages · 6e8625d0d2ba
      Sean McGivern authored
      `Nokogiri::XML::Node#ancestors` appears to be much slower than
      `HTML::Pipeline::Filter#has_ancestor?` for these purposes. We already use
      `#has_ancestor?` elsewhere, so this change also makes this filter more
      consistent with other banzai filters.
      6e8625d0d2ba
  4. 18 Jun, 2018 2 commits
  5. 16 Jun, 2018 1 commit
  6. 14 Jun, 2018 2 commits
  7. 12 Jun, 2018 1 commit
  8. 28 May, 2018 1 commit
  9. 23 May, 2018 1 commit
  10. 18 May, 2018 2 commits
  11. 25 Apr, 2018 1 commit
  12. 17 Apr, 2018 1 commit
  13. 12 Apr, 2018 1 commit
    • Jan Provaznik's avatar
      Fix reference filters in group context · 2152d5efc880
      Jan Provaznik authored
      Since !18150 abstract reference filter supports also `group`
      as a resource parent (not only `project`). Some reference filters,
      which inherit from abstract filter, depend on parent being `project`
      when checking a reference.
      
      This patch adds explicit check of parent class to the given filters.
      2152d5efc880
  14. 11 Apr, 2018 1 commit
    • Yorick Peterse's avatar
      Support Markdown rendering using multiple projects · 6279781f85f9
      Yorick Peterse authored
      This refactors the Markdown pipeline so it supports the rendering of
      multiple documents that may belong to different projects. An example of
      where this happens is when displaying the event feed of a group. In this
      case we retrieve events for all projects in the group. Previously we
      would group events per project and render these chunks separately, but
      this would result in many SQL queries being executed. By extending the
      Markdown pipeline to support this out of the box we can drastically
      reduce the number of SQL queries.
      
      To achieve this we introduce a new object to the pipeline:
      Banzai::RenderContext. This object simply wraps two other objects: an
      optional Project instance, and an optional User instance. On its own
      this wouldn't be very helpful, but a RenderContext can also be used to
      associate HTML documents with specific Project instances. This work is
      done in Banzai::ObjectRenderer and allows us to reuse as many queries
      (and results) as possible.
      6279781f85f9
  15. 06 Apr, 2018 1 commit
  16. 05 Apr, 2018 1 commit
  17. 04 Apr, 2018 3 commits
  18. 02 Apr, 2018 1 commit
  19. 28 Mar, 2018 1 commit
    • Sean McGivern's avatar
      Fix auto-linking with escaped HTML entities · e6064d1f4b38
      Sean McGivern authored
      We displayed the correct text as the link text (without double-encoding), but
      didn't do the same for the actual link target, so any link containing an
      ampersand would break when auto-linked.
      e6064d1f4b38
  20. 23 Mar, 2018 2 commits
  21. 20 Mar, 2018 1 commit
  22. 11 Mar, 2018 1 commit
  23. 07 Mar, 2018 1 commit
  24. 05 Mar, 2018 1 commit
  25. 02 Mar, 2018 1 commit
    • Sean McGivern's avatar
      Match Rinku's behaviour for closing punctuation in links · 4ca65081ff1d
      Sean McGivern authored
      Rinku 2.0.0 (the version we use) will remove the last character of a link if
      it's a closing part of a punctuation pair (different types of parentheses and
      quotes), unless both of the below are true:
      
      1. The matching pair has different start and end characters.
      2. There are equal numbers of both in the matched string (they don't have to be
         balanced).
      4ca65081ff1d
  26. 27 Feb, 2018 1 commit
  27. 22 Feb, 2018 2 commits
  28. 21 Feb, 2018 1 commit
  29. 15 Feb, 2018 1 commit
  30. 09 Feb, 2018 1 commit
  31. 02 Feb, 2018 1 commit
  32. 01 Feb, 2018 1 commit
  33. 31 Jan, 2018 1 commit