Use page parameter instead of p for pagination.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10744 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
beb2610650
commit
fe690dcf20
@ -220,7 +220,7 @@ class WikiController < ApplicationController
|
|||||||
# show page history
|
# show page history
|
||||||
def history
|
def history
|
||||||
@version_count = @page.content.versions.count
|
@version_count = @page.content.versions.count
|
||||||
@version_pages = Paginator.new self, @version_count, per_page_option, params['p']
|
@version_pages = Paginator.new self, @version_count, per_page_option, params['page']
|
||||||
# don't load text
|
# don't load text
|
||||||
@versions = @page.content.versions.find :all,
|
@versions = @page.content.versions.find :all,
|
||||||
:select => "id, author_id, comments, updated_on, version",
|
:select => "id, author_id, comments, updated_on, version",
|
||||||
|
@ -38,5 +38,5 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
|
<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
|
||||||
<span class="pagination"><%= pagination_links_full @version_pages, @version_count, :page_param => :p %></span>
|
<span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user