diff --git a/app/views/platforms/_connection_info.html.haml b/app/views/platforms/_connection_info.html.haml index fce61a164..4b0357309 100644 --- a/app/views/platforms/_connection_info.html.haml +++ b/app/views/platforms/_connection_info.html.haml @@ -1,7 +1,7 @@ .command_select %h3= t("layout.platforms.sys_repos_header") - - platforms = Platform.main.open.order('name ASC') + - platforms = Platform.main.open.where(:distrib_type => APP_CONFIG['distr_types'].first).order('name ASC') .leftlist= label_tag :platform, t("layout.platforms.target_platform") .rightlist= select_tag :platform, options_from_collection_for_select(platforms, :name, :name, platforms.first.id) .both diff --git a/config/locales/models/platform.ru.yml b/config/locales/models/platform.ru.yml index 36767353d..a60f0bbcd 100644 --- a/config/locales/models/platform.ru.yml +++ b/config/locales/models/platform.ru.yml @@ -37,6 +37,8 @@ ru: clone: Клонировать delete_warning: Внимание! Удаленная платформа удалению не подлежит. sys_repos_header: Данные для подключения + target_platform: Целевая платформа + target_architecture: Целевая архитектура flash: platform: