Mercurial > hg > soundsoftware-site
comparison app/views/issues/index.xml.builder @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 xml.instruct! | |
2 xml.issues :type => 'array' do | |
3 @issues.each do |issue| | |
4 xml.issue do | |
5 xml.id issue.id | |
6 xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil? | |
7 xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil? | |
8 xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil? | |
9 xml.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil? | |
10 xml.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil? | |
11 xml.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil? | |
12 xml.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil? | |
13 xml.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil? | |
14 xml.parent(:id => issue.parent_id) unless issue.parent.nil? | |
15 | |
16 xml.subject issue.subject | |
17 xml.description issue.description | |
18 xml.start_date issue.start_date | |
19 xml.due_date issue.due_date | |
20 xml.done_ratio issue.done_ratio | |
21 xml.estimated_hours issue.estimated_hours | |
22 | |
23 xml.custom_fields do | |
24 issue.custom_field_values.each do |custom_value| | |
25 xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name | |
26 end | |
27 end | |
28 | |
29 xml.created_on issue.created_on | |
30 xml.updated_on issue.updated_on | |
31 end | |
32 end | |
33 end |