diff --git a/app/views/advisories/show.html.haml b/app/views/advisories/show.html.haml index c9dbdb5c9..551b628bf 100644 --- a/app/views/advisories/show.html.haml +++ b/app/views/advisories/show.html.haml @@ -5,9 +5,7 @@ .leftlist= "#{t("layout.advisories.project_names")}:".html_safe .rightlist - - @advisory.projects.each do |project| - = link_to project.name, project_path(project) - %br + = raw @advisory.projects.map{ |p| link_to p.name, project_path(p) }.join(', ') .both .leftlist= "#{t("activerecord.attributes.advisory.created_at")}:".html_safe @@ -36,6 +34,11 @@ %br .both +.leftlist= "#{t("layout.advisories.build_lists")}:".html_safe +.rightlist + = raw @advisory.build_lists.map{ |bl| link_to bl.id, build_list_path(bl) }.join(', ') +.both + = render :partial => 'packages_info' :javascript diff --git a/config/locales/models/advisory.en.yml b/config/locales/models/advisory.en.yml index 9de97d545..30ff105cd 100644 --- a/config/locales/models/advisory.en.yml +++ b/config/locales/models/advisory.en.yml @@ -6,6 +6,7 @@ en: form_header: New advisory project_name: Project project_names: Projects + build_lists: Build Lists affected_versions: Affected versions affected_in: Affected in ref_comment: Add links one by row diff --git a/config/locales/models/advisory.ru.yml b/config/locales/models/advisory.ru.yml index a61aa6102..8aec17cd6 100644 --- a/config/locales/models/advisory.ru.yml +++ b/config/locales/models/advisory.ru.yml @@ -6,6 +6,7 @@ ru: form_header: Новый бюллетень project_name: Проект project_names: Проекты + build_lists: Сборочные листы affected_versions: Применен в версиях affected_in: Применен в ref_comment: Вставляйте ссылки по одной на строку