Sha256: 5e082e2843f50a33ba882a3ebc02c2db01439545661060d826ec66962fbd3070

Contents?: true

Size: 716 Bytes

Versions: 5

Compression:

Stored size: 716 Bytes

Contents

- unless defined?(partial)
  !!! XML
%image{:href => image_url(@image.id), :id => @image.id}
  - @image.attributes.select{ |attr| ![:id, :hardware_profiles].include?(attr) }.each do |attribute|
    - haml_tag(attribute, :<) do
      - haml_concat @image.send(attribute)
  - if @image.hardware_profiles
    %hardware_profiles
      - @image.hardware_profiles.each do |profile|
        %hardware_profile{ :href => hardware_profile_url(profile.name), :id => profile.name, :rel => :hardware_profile }
  %actions
    %link{ :rel => 'create_instance', :method => :post, :href => "#{instances_url};image_id=#{@image.id}"}
    %link{ :rel => 'destroy_image', :method => :delete, :href => "#{destroy_image_url(@image.id)}" }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deltacloud-core-1.0.4 views/images/show.xml.haml
deltacloud-core-1.0.3 views/images/show.xml.haml
deltacloud-core-1.0.2 views/images/show.xml.haml
deltacloud-core-1.0.1 views/images/show.xml.haml
deltacloud-core-1.0.0 views/images/show.xml.haml