rosa-build/app/views/products/show.html.haml

47 lines
1.9 KiB
Plaintext
Raw Normal View History

2011-04-14 08:23:08 +01:00
.block
.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
%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 08:23:08 +01:00
.wat-cf
= link_to image_tag("web-app-theme/icons/application_edit.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_platform_product_path(@platform, @product), :class => "button"
2011-04-14 08:23:08 +01:00
= link_to image_tag("web-app-theme/icons/cross.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?
2011-04-15 10:23:12 +01:00
= link_to t("layout.products.clone"), clone_platform_product_path(@platform, @product), :class => "button"
- if @product.can_build?
= link_to t("layout.products.build"), platform_product_product_build_lists_path(@platform, @product), :class => "button", :method => 'post', :confirm => t("layout.confirm")
.block
.content
.inner
%table.table
%tr
%th.first= t("activerecord.attributes.product_build_list.id")
%th= t("activerecord.attributes.product_build_list.product")
%th= t("activerecord.attributes.product_build_list.status")
%th.last= t("activerecord.attributes.product_build_list.notified_at")
= render @product.product_build_lists.default_order
/ = will_paginate build_lists