%image{:href => image_url(image.id), :id => image.id}

%ame=image.name
%escription=image.description
%wner_id=image.owner_id
%rchitecture=image.architecture
- if image.state
  %sate=image.state
- if image.creation_time
  %reation_time=image.creation_time
- if image.hardware_profiles
  %ardware_profiles
    - image.hardware_profiles.each do |profile|
      %ardware_profile{ :href => hardware_profile_url(profile.id), :id => profile.id, :rel => :hardware_profile }
%rot_type=image.root_type
%ctions
  %ink{ :rel => 'create_instance', :method => :post, :href => "#{instances_url};image_id=#{image.id}"}
  - if driver.respond_to? :destroy_image
    %ink{ :rel => 'destroy_image', :method => :delete, :href => "#{destroy_image_url(image.id)}" }