Builds for
= @tpl.platform
= @tpl.platform_version
, template "#{@tpl.name}"

- if @targets_not_built.count > 0 then
  - form_tag(image_factory_builds_path, { :action => 'create', :method => :post }) do
    = hidden_field_tag :template_id, @tpl.id
    New Build for
    = select( "targets", "", options_for_select(@targets_not_built))
    = submit_tag "Go", :name => "build"

- form_tag do
  = hidden_field_tag :template_id, @tpl.id
  /= restful_submit_tag "Upload", 'upload', upload_image_factory_builds_path, 'POST'
  /= restful_submit_tag "Delete", 'delete', delete_image_factory_builds_path, 'DELETE'

%ul
  - if @images.empty?
    %li No Builds
  - else
    - @images.each do |img|
      %li
        = "#{img.name}-#{img.template.architecture}: #{img.status}"
        - if img.status == Image::STATE_COMPLETED
          %ul
            - img.provider_images.each do |pimg|
              %li
                = "#{pimg.provider.name}: #{pimg.status}"
            - img.not_uploaded_providers.each do |provider|
              %li
                = "#{provider.name}: "
                not uploaded
                = link_to 'upload', upload_image_factory_builds_path(:template_id => @tpl.id, :image_id => img.id, :provider_id => provider.id), {:class => 'button'}

Builds for
= @tpl.platform_name
= @tpl.platform_version
, template "#{@tpl.name}"

- if @targets_not_built.count > 0 then
  - form_tag(image_factory_builds_path, { :action => 'create', :method => :post }) do
    = hidden_field_tag :template_id, @tpl.id
    New Build for
    = select( "targets", "", options_for_select(@targets_not_built))
    = submit_tag "Go", :name => "build"

- form_tag do
  = hidden_field_tag :template_id, @tpl.id
  /= restful_submit_tag "Upload", 'upload', upload_image_factory_builds_path, 'POST'
  /= restful_submit_tag "Delete", 'delete', delete_image_factory_builds_path, 'DELETE'

%ul
  - if @images.empty?
    %li No Builds
  - else
    - @images.each do |img|
      %li
        = "#{img.name}-#{img.template.architecture}: #{img.status}"
        - if img.status == Image::STATE_COMPLETED
          %ul
            - img.provider_images.each do |pimg|
              %li
                = "#{pimg.provider.name}: #{pimg.status}"
            - img.not_uploaded_providers.each do |provider|
              %li
                = "#{provider.name}: "
                not uploaded
                = link_to 'upload', upload_image_factory_builds_path(:template_id => @tpl.id, :image_id => img.id, :provider_id => provider.id), {:class => 'button'}

Correct template platform name displayed in image builds
Correct template platform name displayed in image builds

Displayed platform name instead of plaform id on image builds page
