@@ -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 |
|
|
|
32 |
render |
|
|
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)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now