##// END OF EJS Templates
Remove pagination on trackers, roles and issue statuses (#12909)....
Jean-Philippe Lang -
r14891:08c9a5e3ef1a
parent child
Show More
@@ -23,14 +23,10 class IssueStatusesController < ApplicationController
23 23 accept_api_auth :index
24 24
25 25 def index
26 @issue_statuses = IssueStatus.sorted.to_a
26 27 respond_to do |format|
27 format.html {
28 @issue_status_pages, @issue_statuses = paginate IssueStatus.sorted, :per_page => 25
29 render :action => "index", :layout => false if request.xhr?
30 }
31 format.api {
32 @issue_statuses = IssueStatus.order('position').to_a
33 }
28 format.html { render :layout => false if request.xhr? }
29 format.api
34 30 end
35 31 end
36 32
@@ -28,8 +28,8 class RolesController < ApplicationController
28 28 def index
29 29 respond_to do |format|
30 30 format.html {
31 @role_pages, @roles = paginate Role.sorted, :per_page => 25
32 render :action => "index", :layout => false if request.xhr?
31 @roles = Role.sorted.to_a
32 render :layout => false if request.xhr?
33 33 }
34 34 format.api {
35 35 @roles = Role.givable.to_a
@@ -23,14 +23,10 class TrackersController < ApplicationController
23 23 accept_api_auth :index
24 24
25 25 def index
26 @trackers = Tracker.sorted.to_a
26 27 respond_to do |format|
27 format.html {
28 @tracker_pages, @trackers = paginate Tracker.sorted, :per_page => 25
29 render :action => "index", :layout => false if request.xhr?
30 }
31 format.api {
32 @trackers = Tracker.sorted.to_a
33 }
28 format.html { render :layout => false if request.xhr? }
29 format.api
34 30 end
35 31 end
36 32
@@ -32,6 +32,4
32 32 </tbody>
33 33 </table>
34 34
35 <span class="pagination"><%= pagination_links_full @issue_status_pages %></span>
36
37 35 <% html_title(l(:label_issue_status_plural)) -%>
@@ -29,6 +29,4
29 29 </tbody>
30 30 </table>
31 31
32 <span class="pagination"><%= pagination_links_full @role_pages %></span>
33
34 32 <% html_title(l(:label_role_plural)) -%>
@@ -34,6 +34,4
34 34 </tbody>
35 35 </table>
36 36
37 <span class="pagination"><%= pagination_links_full @tracker_pages %></span>
38
39 37 <% html_title(l(:label_tracker_plural)) -%>
General Comments 0
You need to be logged in to leave comments. Login now