From: Martyn Taylor <mtaylor(a)redhat.com>
---
src/app/views/api/builds/index.xml.haml | 2 +-
src/app/views/api/images/index.xml.haml | 2 +-
src/app/views/api/provider_images/_image.xml.haml | 1 -
src/app/views/api/provider_images/index.xml.haml | 2 +-
src/app/views/api/target_images/_image.xml.haml | 1 -
src/app/views/api/target_images/index.xml.haml | 2 +-
6 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/app/views/api/builds/index.xml.haml
b/src/app/views/api/builds/index.xml.haml
index aca031c..56b5444 100644
--- a/src/app/views/api/builds/index.xml.haml
+++ b/src/app/views/api/builds/index.xml.haml
@@ -1,4 +1,4 @@
!!! XML
-%builds{:type => 'xs:list'}
+%builds
- @builds.each do |bld|
= render :partial => 'build', :locals => {:build => bld}
diff --git a/src/app/views/api/images/index.xml.haml
b/src/app/views/api/images/index.xml.haml
index 62262ec..02933d8 100644
--- a/src/app/views/api/images/index.xml.haml
+++ b/src/app/views/api/images/index.xml.haml
@@ -1,4 +1,4 @@
!!!XML
-%images{:type => 'xs:list', :href => api_images_url}
+%images
- @images.each do |img|
= render :partial => 'image', :locals => {:image => img}
diff --git a/src/app/views/api/provider_images/_image.xml.haml
b/src/app/views/api/provider_images/_image.xml.haml
index 788fabd..54dd9fa 100644
--- a/src/app/views/api/provider_images/_image.xml.haml
+++ b/src/app/views/api/provider_images/_image.xml.haml
@@ -3,7 +3,6 @@
- if @image.respond_to?('status')
%status=(a)image.status
- else
- %icicle= image.icicle
%object_type= image.object_type
%target_identifier= image.target_identifier
%status="COMPLETE"
diff --git a/src/app/views/api/provider_images/index.xml.haml
b/src/app/views/api/provider_images/index.xml.haml
index fd7d01e..f6960bd 100644
--- a/src/app/views/api/provider_images/index.xml.haml
+++ b/src/app/views/api/provider_images/index.xml.haml
@@ -1,4 +1,4 @@
!!!XML
-%provider_images{:type => 'xs:list', :href=>api_provider_images_url}
+%provider_images
- @images.each do |img|
= render :partial => 'image', :locals => {:image => img}
diff --git a/src/app/views/api/target_images/_image.xml.haml
b/src/app/views/api/target_images/_image.xml.haml
index 499b329..a112a24 100644
--- a/src/app/views/api/target_images/_image.xml.haml
+++ b/src/app/views/api/target_images/_image.xml.haml
@@ -3,7 +3,6 @@
- if @image.respond_to?('status')
%status=(a)image.status
- else
- %icicle= image.icicle
%object_type= image.object_type
%template= image.template
%build{:href=>api_build_url(image.build.id), :id=>image.build.id}
diff --git a/src/app/views/api/target_images/index.xml.haml
b/src/app/views/api/target_images/index.xml.haml
index 995f613..aad4ec2 100644
--- a/src/app/views/api/target_images/index.xml.haml
+++ b/src/app/views/api/target_images/index.xml.haml
@@ -1,4 +1,4 @@
!!!XML
-%target_images{:type => 'xs:list', :href=>api_target_images_url}
+%target_images
- @images.each do |img|
= render :partial => 'image', :locals => {:image => img}
--
1.7.6.2
Show replies by date
From: Martyn Taylor <mtaylor(a)redhat.com>
---
src/app/views/api/target_images/_image.xml.haml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/app/views/api/target_images/_image.xml.haml
b/src/app/views/api/target_images/_image.xml.haml
index a112a24..4d6ad8a 100644
--- a/src/app/views/api/target_images/_image.xml.haml
+++ b/src/app/views/api/target_images/_image.xml.haml
@@ -6,6 +6,7 @@
%object_type= image.object_type
%template= image.template
%build{:href=>api_build_url(image.build.id), :id=>image.build.id}
- %provider_images
+ %status="COMPLETE"
+ %provider_image
- image.provider_images.each do |pimg|
%provider_image{:id => pimg.id, :href => api_provider_image_url(pimg.id)}
--
1.7.6.2
From: Martyn Taylor <mtaylor(a)redhat.com>
---
src/app/views/api/provider_images/_image.xml.haml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/app/views/api/provider_images/_image.xml.haml
b/src/app/views/api/provider_images/_image.xml.haml
index 54dd9fa..4aaf9ef 100644
--- a/src/app/views/api/provider_images/_image.xml.haml
+++ b/src/app/views/api/provider_images/_image.xml.haml
@@ -6,4 +6,5 @@
%object_type= image.object_type
%target_identifier= image.target_identifier
%status="COMPLETE"
+ %provider=image.provider_name
%target_image{:id => image.target_image.id, :href =>
api_target_image_url(image.target_image.id)}
--
1.7.6.2