summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2013-08-29 13:55:56 +0200
committerAlex Legler <alex@a3li.li>2013-08-29 13:55:56 +0200
commit26df3bcc076d34596a4b35fa4eff6a14e1f2a999 (patch)
tree98f46a869b334b0ea7d0bbfde7626c650457ab3d
parentPortage lib: Add helper to find out whether a package has ebuilds in the tree (diff)
downloadglsamaker-26df3bcc076d34596a4b35fa4eff6a14e1f2a999.tar.gz
glsamaker-26df3bcc076d34596a4b35fa4eff6a14e1f2a999.tar.bz2
glsamaker-26df3bcc076d34596a4b35fa4eff6a14e1f2a999.zip
glsa/show: Display CVE reference details
This should help finding wrong CVE references during review.
-rw-r--r--app/views/glsa/show.html.erb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/glsa/show.html.erb b/app/views/glsa/show.html.erb
index 7a5bdf8..a0965f9 100644
--- a/app/views/glsa/show.html.erb
+++ b/app/views/glsa/show.html.erb
@@ -140,7 +140,15 @@
<td>
<ul>
<% @rev.references.each do |r| %>
- <li><%= link_to r.title, r.url -%></li>
+ <li><%= link_to r.title, r.url -%>
+ <% if r.title.start_with? 'CVE' %> <br />
+ <% if (cve = Cve.where(:cve_id => r.title).first) != nil %>
+ <small><%= cve.summary %></small>
+ <% else %>
+ <small class="red">CVE not found in CVETool database. <strong>Double-check manually!</strong></small>
+ <% end %>
+ <% end %>
+ </li>
<% end %>
</ul>
</td>