git-svn-id: http://svn.redmine.org/redmine/trunk@15273 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.3.0
@@ -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)) -%> |