2012-03-14 17:22:47 +00:00
|
|
|
= render :partial => 'platforms/submenu'
|
|
|
|
= render :partial => 'platforms/sidebar'
|
|
|
|
|
|
|
|
%h3= "#{t("layout.products.about")} #{@product.name}"
|
|
|
|
|
|
|
|
%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"
|
|
|
|
- if can?(:create, @product => ProductBuildList)
|
|
|
|
= 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
|
|
|
|
%th.th1= t("activerecord.attributes.product_build_list.id")
|
|
|
|
%th.th2= t("activerecord.attributes.product_build_list.status")
|
|
|
|
%th.th3= t("layout.product_build_lists.action")
|
|
|
|
%th.th4= t("activerecord.attributes.product_build_list.notified_at")
|
|
|
|
%tbody
|
|
|
|
= render @product.product_build_lists.default_order
|
|
|
|
-#.block
|
2011-04-14 08:23:08 +01:00
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first= link_to @platform.name, platform_path(@platform) + "#products"
|
|
|
|
%li.active= link_to @product.name, platform_product_path(@platform, @product)
|
|
|
|
|
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.product.name")
|
|
|
|
\:
|
|
|
|
= @product.name
|
2011-04-14 18:04:32 +01:00
|
|
|
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.product.is_template")
|
|
|
|
\:
|
|
|
|
= t("layout.#{@product.is_template?}_")
|
|
|
|
|
2011-04-15 10:23:12 +01:00
|
|
|
- content_for :commented do
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.product.system_wide")
|
|
|
|
\:
|
|
|
|
= t("layout.#{@product.system_wide?}_")
|
2011-04-14 18:04:32 +01:00
|
|
|
|
2011-04-14 08:23:08 +01:00
|
|
|
.wat-cf
|
2012-02-27 13:49:24 +00:00
|
|
|
- if can? :update, @product
|
2012-02-27 23:16:14 +00:00
|
|
|
= link_to image_tag("code.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_platform_product_path(@platform, @product), :class => "button"
|
2012-02-27 13:49:24 +00:00
|
|
|
- if can? :destroy, @product
|
2012-02-27 23:16:14 +00:00
|
|
|
= 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")
|
2011-04-14 18:04:32 +01:00
|
|
|
- if @product.can_clone?
|
2012-02-29 09:15:12 +00:00
|
|
|
=# link_to t("layout.products.clone"), clone_platform_product_path(@platform, @product), :class => "button"
|
2012-02-27 13:49:24 +00:00
|
|
|
- if can?(:create, @product => ProductBuildList)
|
2011-11-11 17:13:09 +00:00
|
|
|
= link_to t("layout.products.build"), platform_product_product_build_lists_path(@platform, @product), :class => "button", :method => 'post', :confirm => t("layout.confirm")
|
|
|
|
|
2012-03-14 17:22:47 +00:00
|
|
|
-#.block
|
2011-11-11 17:13:09 +00:00
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%th.first= t("activerecord.attributes.product_build_list.id")
|
|
|
|
%th= t("activerecord.attributes.product_build_list.product")
|
2012-02-27 16:21:56 +00:00
|
|
|
%th= t("activerecord.attributes.product_build_list.container_path")
|
2012-02-27 20:00:33 +00:00
|
|
|
%th= t("activerecord.attributes.product_build_list.status")
|
|
|
|
%th= t("layout.product_build_lists.action")
|
2011-11-11 17:13:09 +00:00
|
|
|
%th.last= t("activerecord.attributes.product_build_list.notified_at")
|
|
|
|
= render @product.product_build_lists.default_order
|
|
|
|
/ = will_paginate build_lists
|