--- .../hardware_profiles/_hardware_profile.xml.haml | 7 +++++++ src/app/views/hardware_profiles/create.xml.haml | 2 ++ src/app/views/hardware_profiles/destroy.xml.haml | 2 ++ src/app/views/hardware_profiles/index.xml.haml | 4 ++++ src/app/views/hardware_profiles/show.xml.haml | 2 ++ 5 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 src/app/views/hardware_profiles/_hardware_profile.xml.haml create mode 100644 src/app/views/hardware_profiles/create.xml.haml create mode 100644 src/app/views/hardware_profiles/destroy.xml.haml create mode 100644 src/app/views/hardware_profiles/index.xml.haml create mode 100644 src/app/views/hardware_profiles/show.xml.haml
diff --git a/src/app/views/hardware_profiles/_hardware_profile.xml.haml b/src/app/views/hardware_profiles/_hardware_profile.xml.haml new file mode 100644 index 0000000..5cd1e1b --- /dev/null +++ b/src/app/views/hardware_profiles/_hardware_profile.xml.haml @@ -0,0 +1,7 @@ +!!!XML +%hardware_profile{:id => hwp.id, :href => hardware_profile_url(hwp.id)} + %name= hwp.name + %memory{:id => hwp.memory.id, :unit => hwp.memory.unit}= hwp.memory.value.nil? ? "nil" : hwp.memory.value + %storage{:id => hwp.storage.id, :unit => hwp.storage.unit}= hwp.storage.value.nil? ? "nil" : hwp.storage.value + %cpu{:id => hwp.cpu.id, :unit => hwp.cpu.unit}= hwp.cpu.value.nil? ? "nil" : hwp.cpu.value + %architecture{:id => hwp.architecture.id, :unit => hwp.architecture.unit}= hwp.architecture.value.nil? ? "nil" : hwp.architecture.value diff --git a/src/app/views/hardware_profiles/create.xml.haml b/src/app/views/hardware_profiles/create.xml.haml new file mode 100644 index 0000000..b0ae305 --- /dev/null +++ b/src/app/views/hardware_profiles/create.xml.haml @@ -0,0 +1,2 @@ +!!! XML += render :partial => "hardware_profile", :locals => {:hwp => @hardware_profile} diff --git a/src/app/views/hardware_profiles/destroy.xml.haml b/src/app/views/hardware_profiles/destroy.xml.haml new file mode 100644 index 0000000..b9370dc --- /dev/null +++ b/src/app/views/hardware_profiles/destroy.xml.haml @@ -0,0 +1,2 @@ +!!!XML += render :partial => "hardware_profile", :locals => {:hwp => @hardware_profile} diff --git a/src/app/views/hardware_profiles/index.xml.haml b/src/app/views/hardware_profiles/index.xml.haml new file mode 100644 index 0000000..06bd3ca --- /dev/null +++ b/src/app/views/hardware_profiles/index.xml.haml @@ -0,0 +1,4 @@ +!!!XML +%hardware_profiles + - @hardware_profiles.each do |hwp| + = render :partial => 'hardware_profile', :locals => {:hwp => hwp} diff --git a/src/app/views/hardware_profiles/show.xml.haml b/src/app/views/hardware_profiles/show.xml.haml new file mode 100644 index 0000000..b9370dc --- /dev/null +++ b/src/app/views/hardware_profiles/show.xml.haml @@ -0,0 +1,2 @@ +!!!XML += render :partial => "hardware_profile", :locals => {:hwp => @hardware_profile}