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
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
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
</tbody>
</table>
-<span class="pagination"><%= pagination_links_full @issue_status_pages %></span>
-
<% html_title(l(:label_issue_status_plural)) -%>
</tbody>
</table>
-<span class="pagination"><%= pagination_links_full @role_pages %></span>
-
<% html_title(l(:label_role_plural)) -%>
</tbody>
</table>
-<span class="pagination"><%= pagination_links_full @tracker_pages %></span>
-
<% html_title(l(:label_tracker_plural)) -%>