diff app/views/projects/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 94944d00e43c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/views/projects/index.xml.builder	Fri Jul 23 15:52:44 2010 +0100
@@ -0,0 +1,19 @@
+xml.instruct!
+xml.projects :type => 'array' do
+  @projects.each do |project|
+    xml.project do
+      xml.id          project.id
+      xml.name        project.name
+      xml.identifier  project.identifier
+      xml.description project.description
+      xml.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil?
+      xml.custom_fields do
+        project.custom_field_values.each do |custom_value|
+          xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name
+        end
+      end unless project.custom_field_values.empty?
+      xml.created_on  project.created_on
+      xml.updated_on  project.updated_on
+    end
+  end
+end