##// END OF EJS Templates
Use page parameter instead of p for pagination....
Jean-Philippe Lang -
r10529:fe690dcf20cb
parent child
Show More
@@ -220,7 +220,7 class WikiController < ApplicationController
220 # show page history
220 # show page history
221 def history
221 def history
222 @version_count = @page.content.versions.count
222 @version_count = @page.content.versions.count
223 @version_pages = Paginator.new self, @version_count, per_page_option, params['p']
223 @version_pages = Paginator.new self, @version_count, per_page_option, params['page']
224 # don't load text
224 # don't load text
225 @versions = @page.content.versions.find :all,
225 @versions = @page.content.versions.find :all,
226 :select => "id, author_id, comments, updated_on, version",
226 :select => "id, author_id, comments, updated_on, version",
@@ -38,5 +38,5
38 </tbody>
38 </tbody>
39 </table>
39 </table>
40 <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
40 <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
41 <span class="pagination"><%= pagination_links_full @version_pages, @version_count, :page_param => :p %></span>
41 <span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span>
42 <% end %>
42 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now