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:
parent
af89a8b201
commit
08c9a5e3ef
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -32,6 +32,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="pagination"><%= pagination_links_full @issue_status_pages %></span>
|
||||
|
||||
<% html_title(l(:label_issue_status_plural)) -%>
|
||||
|
||||
@ -29,6 +29,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="pagination"><%= pagination_links_full @role_pages %></span>
|
||||
|
||||
<% html_title(l(:label_role_plural)) -%>
|
||||
|
||||
@ -34,6 +34,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="pagination"><%= pagination_links_full @tracker_pages %></span>
|
||||
|
||||
<% html_title(l(:label_tracker_plural)) -%>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user