/wiki_page_versions: merge page and global listings.

This commit is contained in:
evazion
2020-01-12 15:48:28 -06:00
parent 90b94adee8
commit ed5caba71c
4 changed files with 20 additions and 43 deletions

View File

@@ -3,11 +3,7 @@
<% content_for(:content) do %>
<h1>Wiki Page History</h1>
<% if params.dig(:search, :wiki_page_id).present? %>
<%= render "page_listing" %>
<% else %>
<%= render "global_listing" %>
<% end %>
<%= render "listing" %>
<%= numbered_paginator(@wiki_page_versions) %>
<% end %>