@@ -23,14 +23,10 class IssueStatusesController < ApplicationController | |||||
23 | accept_api_auth :index |
|
23 | accept_api_auth :index | |
24 |
|
24 | |||
25 | def index |
|
25 | def index | |
|
26 | @issue_statuses = IssueStatus.sorted.to_a | |||
26 | respond_to do |format| |
|
27 | respond_to do |format| | |
27 | format.html { |
|
28 | format.html { render :layout => false if request.xhr? } | |
28 | @issue_status_pages, @issue_statuses = paginate IssueStatus.sorted, :per_page => 25 |
|
29 | format.api | |
29 | render :action => "index", :layout => false if request.xhr? |
|
|||
30 | } |
|
|||
31 | format.api { |
|
|||
32 | @issue_statuses = IssueStatus.order('position').to_a |
|
|||
33 | } |
|
|||
34 | end |
|
30 | end | |
35 | end |
|
31 | end | |
36 |
|
32 |
@@ -28,8 +28,8 class RolesController < ApplicationController | |||||
28 | def index |
|
28 | def index | |
29 | respond_to do |format| |
|
29 | respond_to do |format| | |
30 | format.html { |
|
30 | format.html { | |
31 |
|
|
31 | @roles = Role.sorted.to_a | |
32 |
render |
|
32 | render :layout => false if request.xhr? | |
33 | } |
|
33 | } | |
34 | format.api { |
|
34 | format.api { | |
35 | @roles = Role.givable.to_a |
|
35 | @roles = Role.givable.to_a |
@@ -23,14 +23,10 class TrackersController < ApplicationController | |||||
23 | accept_api_auth :index |
|
23 | accept_api_auth :index | |
24 |
|
24 | |||
25 | def index |
|
25 | def index | |
|
26 | @trackers = Tracker.sorted.to_a | |||
26 | respond_to do |format| |
|
27 | respond_to do |format| | |
27 | format.html { |
|
28 | format.html { render :layout => false if request.xhr? } | |
28 | @tracker_pages, @trackers = paginate Tracker.sorted, :per_page => 25 |
|
29 | format.api | |
29 | render :action => "index", :layout => false if request.xhr? |
|
|||
30 | } |
|
|||
31 | format.api { |
|
|||
32 | @trackers = Tracker.sorted.to_a |
|
|||
33 | } |
|
|||
34 | end |
|
30 | end | |
35 | end |
|
31 | end | |
36 |
|
32 |
@@ -32,6 +32,4 | |||||
32 | </tbody> |
|
32 | </tbody> | |
33 | </table> |
|
33 | </table> | |
34 |
|
34 | |||
35 | <span class="pagination"><%= pagination_links_full @issue_status_pages %></span> |
|
|||
36 |
|
||||
37 | <% html_title(l(:label_issue_status_plural)) -%> |
|
35 | <% html_title(l(:label_issue_status_plural)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now