1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-01 05:09:40 +00:00

Remove pagination on trackers, roles and issue statuses (#12909).

git-svn-id: http://svn.redmine.org/redmine/trunk@15273 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-03-20 09:57:24 +00:00
parent af89a8b201
commit 08c9a5e3ef
6 changed files with 8 additions and 22 deletions

View File

@ -23,14 +23,10 @@ class IssueStatusesController < ApplicationController
accept_api_auth :index
def index
@issue_statuses = IssueStatus.sorted.to_a
respond_to do |format|
format.html {
@issue_status_pages, @issue_statuses = paginate IssueStatus.sorted, :per_page => 25
render :action => "index", :layout => false if request.xhr?
}
format.api {
@issue_statuses = IssueStatus.order('position').to_a
}
format.html { render :layout => false if request.xhr? }
format.api
end
end

View File

@ -28,8 +28,8 @@ class RolesController < ApplicationController
def index
respond_to do |format|
format.html {
@role_pages, @roles = paginate Role.sorted, :per_page => 25
render :action => "index", :layout => false if request.xhr?
@roles = Role.sorted.to_a
render :layout => false if request.xhr?
}
format.api {
@roles = Role.givable.to_a

View File

@ -23,14 +23,10 @@ class TrackersController < ApplicationController
accept_api_auth :index
def index
@trackers = Tracker.sorted.to_a
respond_to do |format|
format.html {
@tracker_pages, @trackers = paginate Tracker.sorted, :per_page => 25
render :action => "index", :layout => false if request.xhr?
}
format.api {
@trackers = Tracker.sorted.to_a
}
format.html { render :layout => false if request.xhr? }
format.api
end
end

View File

@ -32,6 +32,4 @@
</tbody>
</table>
<span class="pagination"><%= pagination_links_full @issue_status_pages %></span>
<% html_title(l(:label_issue_status_plural)) -%>

View File

@ -29,6 +29,4 @@
</tbody>
</table>
<span class="pagination"><%= pagination_links_full @role_pages %></span>
<% html_title(l(:label_role_plural)) -%>

View File

@ -34,6 +34,4 @@
</tbody>
</table>
<span class="pagination"><%= pagination_links_full @tracker_pages %></span>
<% html_title(l(:label_tracker_plural)) -%>