[refs #442] Remove button. Add tab. Fix locales. Fix schema

This commit is contained in:
konstantin.grabar 2012-05-23 20:44:04 +04:00
parent 43e95b565e
commit 45ff187875
6 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,8 @@
= link_to t("layout.platforms.about"), platform_path(@platform) = link_to t("layout.platforms.about"), platform_path(@platform)
%li{:class => (contr == :repositories) ? 'active' : ''} %li{:class => (contr == :repositories) ? 'active' : ''}
= link_to t("layout.repositories.list_header"), platform_repositories_path(@platform) = link_to t("layout.repositories.list_header"), platform_repositories_path(@platform)
- if can? :mass_builds, @platform
%li= link_to t("layout.platforms.mass_build"), mass_builds_platform_path(@platform)
- if can? :read, @platform.products.build - if can? :read, @platform.products.build
%li{:class => (contr == :products) ? 'active' : ''} %li{:class => (contr == :products) ? 'active' : ''}
= link_to t("layout.products.list_header"), platform_products_path(@platform) = link_to t("layout.products.list_header"), platform_products_path(@platform)

View File

@ -30,8 +30,6 @@
%td= @platform.distrib_type %td= @platform.distrib_type
.buttons_block .buttons_block
- if can? :mass_builds, @platform
= link_to t("layout.platforms.mass_build"), mass_builds_platform_path(@platform), :class => "button left_floated"
= link_to I18n.t("layout.platforms.clone"), clone_platform_path(@platform), :class => "button left_floated" if can? :clone, @platform = link_to I18n.t("layout.platforms.clone"), clone_platform_path(@platform), :class => "button left_floated" if can? :clone, @platform
= render 'connection_info' if @platform.platform_type == 'personal' and @platform.visibility == 'open' = render 'connection_info' if @platform.platform_type == 'personal' and @platform.visibility == 'open'

View File

@ -28,7 +28,7 @@ en:
preferences: Preferences preferences: Preferences
started_at: Build started at started_at: Build started at
duration: Build duration in seconds duration: Build duration in seconds
mass_build_id: Mass Build mass_build_id: Mass build
build_list/item: build_list/item:
name: Name name: Name

View File

@ -27,7 +27,7 @@ ru:
user: Пользователь user: Пользователь
preferences: Настройки preferences: Настройки
duration: Длительность билда в секундах duration: Длительность билда в секундах
mass_build_id: Массовая Сборка mass_build_id: Массовая сборка
build_list/item: build_list/item:
name: Название name: Название

View File

@ -42,7 +42,7 @@ en:
members: Members members: Members
project: Project project: Project
arch: Architecture arch: Architecture
mass_build: Mass Build mass_build: Mass build
build_task: Build Task build_task: Build Task
refresh_button: Refresh refresh_button: Refresh

View File

@ -233,7 +233,7 @@ ActiveRecord::Schema.define(:version => 20120523113925) do
t.string "owner_type" t.string "owner_type"
t.string "visibility", :default => "open", :null => false t.string "visibility", :default => "open", :null => false
t.string "platform_type", :default => "main", :null => false t.string "platform_type", :default => "main", :null => false
t.string "distrib_type" t.string "distrib_type", :null => false
end end
add_index "platforms", ["name"], :name => "index_platforms_on_name", :unique => true, :case_sensitive => false add_index "platforms", ["name"], :name => "index_platforms_on_name", :unique => true, :case_sensitive => false