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
|
|
|
|
|
|
|
|
.leftlist= "#{t("layout.advisories.project_name")}:".html_safe
|
2012-05-05 18:18:29 +01:00
|
|
|
.rightlist= link_to @advisory.project.name, project_path(@advisory.project)
|
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
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$('article .all').addClass('bigpadding');
|