2011-03-31 00:10:23 +01:00
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first= link_to t("layout.platforms.list"), platforms_path
|
2011-11-22 13:20:35 +00:00
|
|
|
%li= link_to t("layout.platforms.new"), new_platform_path if can? :create, Platform
|
2011-03-31 00:10:23 +01:00
|
|
|
%li.active= link_to t("layout.platforms.show"), platform_path
|
2011-10-18 14:47:17 +01:00
|
|
|
%li= link_to t("layout.platforms.private_users"), platform_private_users_path(@platform)
|
2011-03-31 00:10:23 +01:00
|
|
|
.content
|
|
|
|
.inner
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.platform.name")
|
|
|
|
\:
|
|
|
|
= @platform.name
|
|
|
|
%p
|
|
|
|
%b
|
2011-11-28 15:41:42 +00:00
|
|
|
= t("activerecord.attributes.platform.description")
|
2011-03-31 00:10:23 +01:00
|
|
|
\:
|
2011-11-28 15:41:42 +00:00
|
|
|
= @platform.description
|
2011-03-31 12:41:58 +01:00
|
|
|
- if @platform.parent
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t("activerecord.attributes.platform.parent")
|
|
|
|
\:
|
|
|
|
- if @platform.parent
|
2011-11-28 15:41:42 +00:00
|
|
|
= link_to @platform.parent.description, platform_path(@platform.parent)
|
2011-03-31 00:10:23 +01:00
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.platforms.location')
|
|
|
|
\:
|
|
|
|
= @platform.path
|
2011-03-17 14:47:16 +00:00
|
|
|
|
2011-10-17 15:27:07 +01:00
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.platforms.owner')
|
|
|
|
\:
|
2011-10-17 17:07:53 +01:00
|
|
|
= link_to @platform.owner.try(:name), url_for(@platform.owner)
|
2011-10-17 15:27:07 +01:00
|
|
|
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.platforms.visibility')
|
|
|
|
\:
|
|
|
|
= @platform.visibility
|
|
|
|
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.platforms.platform_type')
|
|
|
|
\:
|
|
|
|
= @platform.platform_type
|
|
|
|
|
|
|
|
%p
|
|
|
|
%b
|
|
|
|
= t('layout.platforms.distrib_type')
|
|
|
|
\:
|
|
|
|
= @platform.distrib_type
|
|
|
|
|
|
|
|
|
2011-03-31 00:10:23 +01:00
|
|
|
.wat-cf
|
|
|
|
-#= link_to image_tag("web-app-theme/icons/application_edit.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_platform_path(@platform), :class => "button"
|
2011-11-24 21:46:19 +00:00
|
|
|
= link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), platform_path(@platform), :method => "delete", :class => "button", :confirm => t("layout.platforms.confirm_delete") if can? :delete, @platform
|
2011-03-31 00:10:23 +01:00
|
|
|
- if @platform.released?
|
2011-12-07 00:08:46 +00:00
|
|
|
= link_to t("layout.platforms.unfreeze"), unfreeze_platform_path(@platform), :confirm => I18n.t("layout.platforms.confirm_unfreeze"), :method => :post, :class => "button" if can? :unfreeze, @platform
|
2011-03-31 00:10:23 +01:00
|
|
|
- else
|
2011-12-07 00:08:46 +00:00
|
|
|
= link_to t("layout.platforms.freeze"), freeze_platform_path(@platform), :confirm => I18n.t("layout.platforms.confirm_freeze"), :method => :post, :class => "button" if can? :freeze, @platform
|
2011-11-24 21:46:19 +00:00
|
|
|
= link_to "Клонировать", clone_platform_path(@platform), :class => "button" if can? :clone, @platform
|
2011-12-07 00:08:46 +00:00
|
|
|
= link_to t("layout.platforms.build_all"), build_all_platform_path(@platform), :confirm => I18n.t("layout.confirm"), :method => :post, :class => "button" if can? :build_all, @platform
|
2011-12-13 13:27:27 +00:00
|
|
|
= link_to t("layout.platforms.edit"), edit_platform_path(@platform), :class => "button" if can? :edit, @platform
|
2011-03-17 14:47:16 +00:00
|
|
|
|
2011-03-31 01:25:18 +01:00
|
|
|
%a{ :name => "repositories" }
|
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first.active= link_to t("layout.repositories.list"), platform_path(@platform) + "#repositories"
|
2011-12-02 15:25:59 +00:00
|
|
|
%li= link_to t("layout.repositories.new"), new_platform_repository_path(@platform) if can? :create, Repository.build_stub(@platform)
|
2011-03-31 01:25:18 +01:00
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.repositories.list_header")
|
|
|
|
.inner
|
|
|
|
%table.table
|
|
|
|
%tr
|
2011-11-28 15:41:42 +00:00
|
|
|
%th.first= t("activerecord.attributes.repository.description")
|
2011-03-31 01:25:18 +01:00
|
|
|
%th.last
|
|
|
|
- @platform.repositories.recent.each do |repository|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
|
|
|
%td
|
2011-11-28 15:41:42 +00:00
|
|
|
= link_to repository.description, platform_repository_path(@platform, repository)
|
2011-03-31 01:25:18 +01:00
|
|
|
%td.last
|
2011-11-17 19:34:02 +00:00
|
|
|
= link_to t("layout.show"), platform_repository_path(@platform, repository)
|
2011-11-16 18:45:01 +00:00
|
|
|
|
|
2011-11-17 19:34:02 +00:00
|
|
|
= link_to t("layout.delete"), platform_repository_path(@platform, repository), :method => :delete, :confirm => t("layout.repositories.confirm_delete") if can? :destroy, @platform
|
2011-03-31 01:25:18 +01:00
|
|
|
.actions-bar.wat-cf
|
|
|
|
.actions
|
2011-03-11 09:39:34 +00:00
|
|
|
|
2011-04-11 17:55:52 +01:00
|
|
|
%a{ :name => "producs" }
|
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first.active= link_to t("layout.products.list"), platform_path(@platform) + "#products"
|
2011-12-02 06:57:58 +00:00
|
|
|
%li= link_to t("layout.products.new"), new_platform_product_path(@platform) if can? :create, Product.new(:platform_id => @platform.id)
|
2011-04-11 17:55:52 +01:00
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.products.list_header")
|
|
|
|
.inner
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%th.first= t("activerecord.attributes.product.name")
|
|
|
|
%th.last
|
|
|
|
- @platform.products.recent.each do |product|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
|
|
|
%td
|
2011-11-11 19:11:27 +00:00
|
|
|
= link_to product.name, [@platform, product]
|
2011-04-11 17:55:52 +01:00
|
|
|
%td.last
|
2011-11-22 13:20:35 +00:00
|
|
|
= link_to t("layout.edit"), edit_platform_product_path(@platform, product) if can? :update, product
|
2011-11-16 18:45:01 +00:00
|
|
|
|
|
2011-11-22 13:20:35 +00:00
|
|
|
= link_to t("layout.delete"), platform_product_path(@platform, product), :method => :delete, :confirm => t("layout.products.confirm_delete") if can? :destroy, product
|
2011-11-16 18:45:01 +00:00
|
|
|
= (product.can_clone? ? "| #{link_to t("layout.products.clone"), clone_platform_product_path(@platform, product)}" : "").html_safe
|
2011-04-11 17:55:52 +01:00
|
|
|
.actions-bar.wat-cf
|
|
|
|
.actions
|
2011-10-17 15:27:07 +01:00
|
|
|
- content_for :sidebar, render(:partial => 'sidebar')
|