* Factor out common sidebar layout template. * Convert wiki pages and posts to use this template. * Add data-layout attribute to <body> element indicating the current layout.
16 lines
349 B
Plaintext
16 lines
349 B
Plaintext
<%= render "wiki_pages/sidebar" %>
|
|
|
|
<% 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 %>
|
|
|
|
<%= numbered_paginator(@wiki_page_versions) %>
|
|
<% end %>
|
|
|
|
<%= render "wiki_pages/secondary_links" %>
|