summaryrefslogtreecommitdiff
blob: 29e75c4c61738959aeac32f7e8bfcdc079fe6a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<h1 class="first-header">
  <%= h @glsa.title %>
  <small>&mdash; GLSA <strong><%= h @glsa.id %></strong></small>
</h1>

<div class="row">
  <div class="col-xs-12 col-md-10">
    <p class="lead">
      <%= h @glsa.synopsis %>
    </p>

    <h3>Affected Packages</h3>

    <div class="table-responsive">
      <% @glsa.packages.each_pair do |package, data|
        atom, arch = package.split ':'
      %>
      <table class="table">
        <tr>
          <th class="anzen-metadata-title-col">Package</th>
          <td><strong><%= h atom %></strong> on <% if arch == '*' %>all architectures<% else %>the <%= h arch %> architecture<% end %></td>
        </tr>
        <tr class="danger">
          <th>Affected versions</th>
          <td><%= data[:vulnerable].map { |ver| render_version(ver) }.join '<br>' %></td>
        </tr>
        <tr class="success">
          <th>Unaffected versions</th>
          <td><%= data[:unaffected].map { |ver| render_version(ver) }.join '<br>' %></td>
        </tr>
      </table>
      <% end %>
    </div>

    <h3>Background</h3>
    <%= h2 @glsa.background %>

    <h3>Description</h3>
    <%= h2 @glsa.description %>

    <h3>Impact</h3>
    <%= h2 @glsa.impact %>

    <h3>Workaround</h3>
    <%= h2 @glsa.workaround %>

    <h3>Resolution</h3>
    <%= h2(code2pre(@glsa.resolution)) %>

    <h3>References</h3>
    <ul>
    <% @glsa.references.each do |ref| %>
      <li><a href="<%= h ref[1] %>"><%= h ref[0] %></a></li>
    <% end %>
  </div>
  <div class="col-xs-12 col-md-2">
    <p>
      <strong>Release Date</strong>
      <br>
      <%= date_format @glsa.date %>
    </p>
    <p>
      <strong>Latest Revision</strong>
      <br>
      <%= date_format @glsa.revised %>: <%= h @glsa.revision %>
    </p>
    <p>
      <strong>Severity</strong>
      <br>
      <%= h @glsa.severity %>
    </p>
    <p>
      <strong>Exploitable</strong>
      <br>
      <%= h @glsa.access %>
    </p>
    <p>
      <strong>Bugzilla entries</strong>
    </p>
    <ul>
      <% @glsa.bugs.each do |bug| %>
      <li><a href="https://bugs.gentoo.org/show_bug.cgi?id=<%= h bug %>"><%= h bug %></a></li>
      <% end %>
    </ul>
  </div>
</div>