New setting added to specify how many objects should be displayed on most paginated lists.
Default is: 25, 50, 100 (users can choose one of these values). If one value only is entered in this setting (eg. 25), the 'per page' links are not displayed (prior behaviour). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1026 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><%= pagination_links_full @project_pages, :status => @status %>
|
||||
[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]</p>
|
||||
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
|
||||
|
||||
<% set_html_title l(:label_project_plural) -%>
|
||||
|
||||
@@ -25,4 +25,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= pagination_links_full @auth_source_pages %>
|
||||
<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
|
||||
|
||||
@@ -43,8 +43,7 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><%= pagination_links_full @topic_pages %>
|
||||
[ <%= @topic_pages.current.first_item %> - <%= @topic_pages.current.last_item %> / <%= @topic_count %> ]</p>
|
||||
<p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
||||
|
||||
@@ -32,6 +32,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= pagination_links_full @issue_status_pages %>
|
||||
<p class="pagination"><%= pagination_links_full @issue_status_pages %></p>
|
||||
|
||||
<% set_html_title(l(:label_issue_status_plural)) -%>
|
||||
|
||||
@@ -48,8 +48,7 @@
|
||||
<%= link_to 'CSV', {:format => 'csv'}, :class => 'icon icon-csv' %>,
|
||||
<%= link_to 'PDF', {:format => 'pdf'}, :class => 'icon icon-pdf' %>
|
||||
</div>
|
||||
<p><%= pagination_links_full @issue_pages %>
|
||||
[ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]</p>
|
||||
<p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<%= textilizable(news.description) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= pagination_links_full @news_pages %>
|
||||
<p class="pagination"><%= pagination_links_full @news_pages %></p>
|
||||
|
||||
<% content_for :header_tags do %>
|
||||
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
|
||||
|
||||
@@ -56,8 +56,7 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><%= pagination_links_full @changes_pages, :rev => @changeset.revision %>
|
||||
[ <%= @changes_pages.current.first_item %> - <%= @changes_pages.current.last_item %> / <%= @changes_count %> ]</p>
|
||||
<p class="pagination"><%= pagination_links_full @changes_pages %></p>
|
||||
|
||||
<% content_for :header_tags do %>
|
||||
<%= stylesheet_link_tag "scm" %>
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
|
||||
<%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
|
||||
|
||||
<p><%= pagination_links_full @changeset_pages %>
|
||||
[ <%= @changeset_pages.current.first_item %> - <%= @changeset_pages.current.last_item %> / <%= @changeset_count %> ]</p>
|
||||
<p class="pagination"><%= pagination_links_full @changeset_pages,@changeset_count %></p>
|
||||
|
||||
<% content_for :header_tags do %>
|
||||
<%= stylesheet_link_tag "scm" %>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><%= pagination_links_full @role_pages %></p>
|
||||
<p class="pagination"><%= pagination_links_full @role_pages %></p>
|
||||
|
||||
<p><%= link_to l(:label_permissions_report), :action => 'report' %></p>
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
<p><label><%= l(:setting_attachment_max_size) %></label>
|
||||
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
|
||||
|
||||
<p><label><%= l(:setting_per_page_options) %></label>
|
||||
<%= text_field_tag 'settings[per_page_options]', Setting.per_page_options_array.join(', '), :size => 20 %><br /><em><%= l(:text_comma_separated) %></em></p>
|
||||
|
||||
<p><label><%= l(:setting_issues_export_limit) %></label>
|
||||
<%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
|
||||
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= pagination_links_full @tracker_pages %>
|
||||
<p class="pagination"><%= pagination_links_full @tracker_pages %></p>
|
||||
|
||||
<% set_html_title(l(:label_tracker_plural)) -%>
|
||||
|
||||
@@ -55,8 +55,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><%= pagination_links_full @user_pages, :status => @status %>
|
||||
[ <%= @user_pages.current.first_item %> - <%= @user_pages.current.last_item %> / <%= @user_count %> ]
|
||||
</p>
|
||||
<p class="pagination"><%= pagination_links_full @user_pages, @user_count %></p>
|
||||
|
||||
<% set_html_title(l(:label_user_plural)) -%>
|
||||
|
||||
@@ -31,6 +31,5 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<%= submit_tag l(:label_view_diff), :class => 'small' %>
|
||||
<%= pagination_links_full @version_pages, :page_param => :p %>
|
||||
[ <%= @version_pages.current.first_item %> - <%= @version_pages.current.last_item %> / <%= @version_count %> ]
|
||||
<span class="pagination"><%= pagination_links_full @version_pages, @version_count, :page_param => :p %></span>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user