From b6b1462de5475709ef02b66f3080eade2b642dca Mon Sep 17 00:00:00 2001 From: George Vinogradov Date: Mon, 19 Mar 2012 19:37:08 +0400 Subject: [PATCH] [issue #279] Fixed some bugs in connection info. --- app/views/platforms/_connection_info.html.haml | 2 +- config/locales/models/platform.ru.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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: