##// END OF EJS Templates
replace tabs to spaces at app/views/issues/index.api.rsb...
Toshi MARUYAMA -
r7242:9a83062fd541
parent child
Show More
@@ -1,34 +1,34
1 1 api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :limit => @limit) do
2 2 @issues.each do |issue|
3 3 api.issue do
4 4 api.id issue.id
5 5 api.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil?
6 6 api.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil?
7 7 api.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil?
8 8 api.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil?
9 9 api.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil?
10 10 api.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil?
11 11 api.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil?
12 12 api.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil?
13 13 api.parent(:id => issue.parent_id) unless issue.parent.nil?
14 14
15 api.subject issue.subject
15 api.subject issue.subject
16 16 api.description issue.description
17 api.start_date issue.start_date
18 api.due_date issue.due_date
19 api.done_ratio issue.done_ratio
17 api.start_date issue.start_date
18 api.due_date issue.due_date
19 api.done_ratio issue.done_ratio
20 20 api.estimated_hours issue.estimated_hours
21 21
22 22 render_api_custom_values issue.custom_field_values, api
23 23
24 24 api.created_on issue.created_on
25 25 api.updated_on issue.updated_on
26 26
27 27 api.array :relations do
28 28 issue.relations.each do |relation|
29 29 api.relation(:id => relation.id, :issue_id => relation.issue_from_id, :issue_to_id => relation.issue_to_id, :relation_type => relation.relation_type, :delay => relation.delay)
30 30 end
31 31 end if include_in_api_response?('relations')
32 32 end
33 33 end
34 34 end
General Comments 0
You need to be logged in to leave comments. Login now