diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-01-17 19:45:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-01-17 19:45:18 +0000 |
commit | 002f440bcd348cb042833747b489b2afa0522bfe (patch) | |
tree | 3bc610c309c5c66a8a34a6a6600ccb50c0b112e8 | |
parent | 3eb815fddd76e121f9572e84dde17111fc5588a5 (diff) | |
download | redmine-002f440bcd348cb042833747b489b2afa0522bfe.tar.gz redmine-002f440bcd348cb042833747b489b2afa0522bfe.zip |
Move ids in XML views.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3331 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/index.xml.builder | 3 | ||||
-rw-r--r-- | app/views/issues/show.xml.builder | 3 | ||||
-rw-r--r-- | app/views/projects/index.xml.builder | 3 | ||||
-rw-r--r-- | app/views/projects/show.xml.builder | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/app/views/issues/index.xml.builder b/app/views/issues/index.xml.builder index 4c848b54d..813aae1b1 100644 --- a/app/views/issues/index.xml.builder +++ b/app/views/issues/index.xml.builder @@ -1,7 +1,8 @@ xml.instruct! xml.issues :type => 'array', :count => @issue_count do @issues.each do |issue| - xml.issue :id => issue.id do + xml.issue do + xml.id issue.id xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil? xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil? xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil? diff --git a/app/views/issues/show.xml.builder b/app/views/issues/show.xml.builder index b73f9844d..84a1d95aa 100644 --- a/app/views/issues/show.xml.builder +++ b/app/views/issues/show.xml.builder @@ -1,5 +1,6 @@ xml.instruct! -xml.issue :id => @issue.id do +xml.issue do + xml.id @issue.id xml.project(:id => @issue.project_id, :name => @issue.project.name) unless @issue.project.nil? xml.tracker(:id => @issue.tracker_id, :name => @issue.tracker.name) unless @issue.tracker.nil? xml.status(:id => @issue.status_id, :name => @issue.status.name) unless @issue.status.nil? diff --git a/app/views/projects/index.xml.builder b/app/views/projects/index.xml.builder index 637ae7ef6..ea99d4906 100644 --- a/app/views/projects/index.xml.builder +++ b/app/views/projects/index.xml.builder @@ -1,7 +1,8 @@ xml.instruct! xml.projects :type => 'array' do @projects.each do |project| - xml.project :id => project.id do + xml.project do + xml.id project.id xml.name project.name xml.identifier project.identifier xml.description project.description diff --git a/app/views/projects/show.xml.builder b/app/views/projects/show.xml.builder index 3c4241d4c..f4a1e1429 100644 --- a/app/views/projects/show.xml.builder +++ b/app/views/projects/show.xml.builder @@ -1,5 +1,6 @@ xml.instruct! -xml.project :id => @project.id do +xml.project do + xml.id @project.id xml.name @project.name xml.identifier @project.identifier xml.description @project.description |