• Markus Koller's avatar
    Correctly count wiki pages in sidebar · aad68a0d
    Markus Koller authored
    The existing code had two problems:
    
    - We were only counting toplevel entries, not individual pages.
    - We were showing the "View All Pages" button when the number of pages
      exactly matches the limit, even when there are no further pages.
    
    This is now resolved by loading one page more than the limit, and using
    the result count to determine if we have more pages.
    aad68a0d
user_creates_wiki_page_spec.rb 10.7 KB