diff options
author | Alex Legler <alex@a3li.li> | 2013-08-29 13:55:56 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2013-08-29 13:55:56 +0200 |
commit | 26df3bcc076d34596a4b35fa4eff6a14e1f2a999 (patch) | |
tree | 98f46a869b334b0ea7d0bbfde7626c650457ab3d | |
parent | Portage lib: Add helper to find out whether a package has ebuilds in the tree (diff) | |
download | glsamaker-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.erb | 10 |
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> |