2012-05-10 16:15:50 +01:00
|
|
|
- set_meta_tags :title => [title_object(@advisory), t('activerecord.models.advisory')]
|
2012-05-05 18:18:29 +01:00
|
|
|
- render :partial => 'submenu'
|
|
|
|
|
2012-05-04 23:53:45 +01:00
|
|
|
%h3= "#{t("activerecord.models.advisory")} #{@advisory.advisory_id}".html_safe
|
|
|
|
|
2012-07-04 18:38:45 +01:00
|
|
|
.leftlist= "#{t("layout.advisories.project_names")}:".html_safe
|
2012-06-18 23:49:17 +01:00
|
|
|
.rightlist
|
2012-07-04 19:52:09 +01:00
|
|
|
= raw @advisory.projects.map{ |p| link_to p.name_with_owner, project_path(p) }.join(', ')
|
2012-05-04 23:53:45 +01:00
|
|
|
.both
|
|
|
|
|
2012-05-05 18:18:29 +01:00
|
|
|
.leftlist= "#{t("activerecord.attributes.advisory.created_at")}:".html_safe
|
2012-05-04 23:53:45 +01:00
|
|
|
.rightlist= @advisory.created_at
|
|
|
|
.both
|
|
|
|
|
|
|
|
.leftlist= "#{t("activerecord.attributes.advisory.advisory_id")}:".html_safe
|
|
|
|
.rightlist= @advisory.advisory_id
|
|
|
|
.both
|
|
|
|
|
|
|
|
.leftlist= "#{t("layout.advisories.affected_versions")}:".html_safe
|
|
|
|
.rightlist
|
|
|
|
- @advisory.platforms.each do |platform|
|
2012-05-10 16:30:41 +01:00
|
|
|
= link_to platform_printed_name(platform), platform_path(platform)
|
2012-05-04 23:53:45 +01:00
|
|
|
%br
|
|
|
|
.both
|
|
|
|
|
|
|
|
.leftlist= "#{t("activerecord.attributes.advisory.description")}:".html_safe
|
2012-05-05 18:18:29 +01:00
|
|
|
.rightlist= simple_format @advisory.description
|
2012-05-04 23:53:45 +01:00
|
|
|
.both
|
|
|
|
|
2012-05-05 18:18:29 +01:00
|
|
|
.leftlist= "#{t("activerecord.attributes.advisory.references")}:".html_safe
|
2012-05-04 23:53:45 +01:00
|
|
|
.rightlist
|
2012-05-05 18:18:29 +01:00
|
|
|
- @advisory.references.gsub(/\r| /, '').split("\n").each do |ref|
|
|
|
|
= construct_ref_link(ref)
|
2012-05-04 23:53:45 +01:00
|
|
|
%br
|
|
|
|
.both
|
|
|
|
|
2012-07-04 19:32:10 +01:00
|
|
|
.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
|
|
|
|
|
2012-06-18 23:49:17 +01:00
|
|
|
= render :partial => 'packages_info'
|
|
|
|
|
2012-05-04 23:53:45 +01:00
|
|
|
:javascript
|
|
|
|
$('article .all').addClass('bigpadding');
|