diff options
Diffstat (limited to 'views/glsa/glsav1.erb')
-rw-r--r-- | views/glsa/glsav1.erb | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/views/glsa/glsav1.erb b/views/glsa/glsav1.erb new file mode 100644 index 0000000..f779ead --- /dev/null +++ b/views/glsa/glsav1.erb @@ -0,0 +1,86 @@ +<h1 class="first-header"> + <%= h @glsa.title %> + <small>— 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[:unaffected].map { |ver| "%s <strong>%s</strong>" % [h(reverse_xml_comp(ver[0])), h(ver[1])] }.join ', ' %></td> + </tr> + <tr class="success"> + <th>Unaffected versions</th> + <td><%= data[:vulnerable].map { |ver| "%s <strong>%s</strong>" % [h(reverse_xml_comp(ver[0])), h(ver[1])] }.join ', ' %></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> + <%= h @glsa.date %> + </p> + <p> + <strong>Latest Revision</strong> + <br> + <%= h @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>
\ No newline at end of file |