summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 14:21:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 14:21:41 +0000
commit2fda2c18261a81f7e73be25192d2f5fc66c705f9 (patch)
tree5cd6e54a3576b0fc72ed19ca3709eca78388168a /app
parentcbd4af236cd34b54f250dfbdd94f3176582b7b6c (diff)
downloadredmine-2fda2c18261a81f7e73be25192d2f5fc66c705f9.tar.gz
redmine-2fda2c18261a81f7e73be25192d2f5fc66c705f9.zip
Adds trackers to individual project XML (#5342).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3730 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/show.xml.builder20
1 files changed, 13 insertions, 7 deletions
diff --git a/app/views/projects/show.xml.builder b/app/views/projects/show.xml.builder
index f4a1e1429..f49d7ee10 100644
--- a/app/views/projects/show.xml.builder
+++ b/app/views/projects/show.xml.builder
@@ -1,17 +1,23 @@
xml.instruct!
xml.project do
- xml.id @project.id
- xml.name @project.name
- xml.identifier @project.identifier
+ xml.id @project.id
+ xml.name @project.name
+ xml.identifier @project.identifier
xml.description @project.description
- xml.homepage @project.homepage
+ xml.homepage @project.homepage
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
+ @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
+
+ xml.trackers do
+ @project.trackers.each do |tracker|
+ xml.tracker(:id => tracker.id, :name => tracker.name)
+ end
+ end
end