@@ -1,19 +1,19 | |||
|
1 | 1 | xml.instruct! |
|
2 | 2 | xml.projects :type => 'array' do |
|
3 | 3 | @projects.each do |project| |
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
4 | xml.project do | |
|
5 | xml.id project.id | |
|
6 | xml.name project.name | |
|
7 | xml.identifier project.identifier | |
|
8 | xml.description project.description | |
|
9 | xml.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil? | |
|
10 | xml.custom_fields do | |
|
11 | project.custom_field_values.each do |custom_value| | |
|
12 | xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name | |
|
13 | end | |
|
14 | 14 | end unless project.custom_field_values.empty? |
|
15 |
xml.created_on |
|
|
16 |
xml.updated_on |
|
|
15 | xml.created_on project.created_on | |
|
16 | xml.updated_on project.updated_on | |
|
17 | 17 | end |
|
18 | 18 | end |
|
19 | 19 | end |
General Comments 0
You need to be logged in to leave comments.
Login now