2012-03-14 17:22:47 +00:00
|
|
|
= render :partial => 'platforms/submenu'
|
|
|
|
= render :partial => 'platforms/sidebar'
|
|
|
|
|
2012-03-23 11:58:20 +00:00
|
|
|
%h3 #{t("layout.products.about")} #{@product.name}
|
2012-03-14 17:22:47 +00:00
|
|
|
|
|
|
|
%p= @product.description
|
|
|
|
|
|
|
|
.buttons_block
|
|
|
|
- if can? :update, @product
|
|
|
|
= link_to image_tag("code.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_platform_product_path(@platform, @product), :class => "button"
|
|
|
|
- if can? :destroy, @product
|
|
|
|
= link_to image_tag("x.png", :alt => t("layout.delete")) + " " + t("layout.delete"), platform_product_path(@platform, @product), :method => "delete", :class => "button", :confirm => t("layout.products.confirm_delete")
|
|
|
|
-# if @product.can_clone?
|
|
|
|
=# link_to t("layout.products.clone"), clone_platform_product_path(@platform, @product), :class => "button"
|
2012-03-15 22:56:12 +00:00
|
|
|
- if can?(:create, @product.product_build_lists.build)
|
2012-03-14 17:22:47 +00:00
|
|
|
= link_to t("layout.products.build"), platform_product_product_build_lists_path(@platform, @product), :class => "button", :method => 'post', :confirm => t("layout.confirm")
|
|
|
|
|
|
|
|
%h3= t("layout.products.build_lists_monitoring")
|
|
|
|
|
|
|
|
%table#myTable.tablesorter.platform-product-main{:cellspacing => "0", :cellpadding => "0"}
|
|
|
|
%thead
|
|
|
|
%tr
|
2012-03-23 20:39:37 +00:00
|
|
|
%th= t("activerecord.attributes.product_build_list.id")
|
|
|
|
%th= t("activerecord.attributes.product_build_list.status")
|
|
|
|
%th= t("activerecord.attributes.product_build_list.container_path")
|
2012-03-28 14:51:04 +01:00
|
|
|
%th= t("layout.product_build_lists.product")
|
2012-03-23 20:39:37 +00:00
|
|
|
%th= t("layout.product_build_lists.action")
|
|
|
|
%th= t("activerecord.attributes.product_build_list.notified_at")
|
2012-03-23 11:58:20 +00:00
|
|
|
%tbody= render @product.product_build_lists.default_order
|