]> git.ktnx.net Git - icedeb.git/commitdiff
extend dsa numbers with an optional trailing -\d+, treat DLA as DSA, add new 'securit...
authorDamyan Ivanov <dmn@debian.org>
Wed, 22 Aug 2018 13:39:47 +0000 (13:39 +0000)
committerDamyan Ivanov <dmn@debian.org>
Wed, 22 Aug 2018 13:39:47 +0000 (13:39 +0000)
icedeb.css
icedeb.html
icedeb.js

index e1268cb2060c5a5c258ab81334a5e2a0042155cb..41e29430172bd662612df5dcf973732e43dfe5cf 100644 (file)
@@ -51,7 +51,9 @@ a, a:visited { color: blue; }
 .hints .hint.p { background-color: hsl(120,100%,96%) }
 .hints .hint.m { background-color: hsl(240,100%,90%) }
 .hints .hint.i { background-color: hsl( 40,100%,96%) }
+.hints .hint.s { background-color: hsl( 80,100%,96%) }
 .like-b .hint.b,
 .like-p .hint.p,
 .like-m .hint.m,
+.like-s .hint.s,
 .like-i .hint.i { opacity: 1; }
index 8ebbc69d19345bdc2791015665cac5a4b68b2dfa..2fb2710001ed610c090b8369f7ea70f9f097fb25 100644 (file)
@@ -37,7 +37,7 @@
           (<a href="https://buildd.debian.org/">site</a>)
       </div>
       <div><span class="icedeb-button" id="security">Security tracker</span>
-          <span class="hints"><span class="hint p" title="package name">p</span><span class="hint b" title="bug name">b</span></span>
+          <span class="hints"><span class="hint p" title="package name">p</span><span class="hint b" title="bug number">b</span><span class="hint s" title="security id">s</span></span>
           (<a href="https://security-tracker.debian.org/">site</a>)
       </div>
       <div><span class="icedeb-button" id="piuparts">Installation checks</span>
index 0d6676b5e4e9d49581548b22975e7da491adf9b9..29327a85166cc6df8d45d018bf7421f6a4be7b20 100644 (file)
--- a/icedeb.js
+++ b/icedeb.js
@@ -174,7 +174,7 @@ function link_clicked(e) {
 function check_likely_inputs(q) {
   let cnt = document.getElementById('button-list-container').classList;
 
-  cnt.remove('like-b', 'like-p', 'like-m', 'like-i');
+  cnt.remove('like-b', 'like-p', 'like-m', 'like-i', 'like-s');
   document.querySelectorAll('.likely')
     .forEach((el) => {
         el.classList.remove('likely');
@@ -195,7 +195,10 @@ function check_likely_inputs(q) {
   if ( /^<.+@.+>$/.test(q) )
     cnt.add('like-i');
 
-  document.querySelectorAll('.like-b .hint.b, .like-p .hint.p, .like-m .hint.m, .like-i .hint.i')
+  if ( /^d[sl]a[- ]\d+(-\d+)?$/i.test(q) )
+    cnt.add('like-s');
+
+  document.querySelectorAll('.like-b .hint.b, .like-p .hint.p, .like-m .hint.m, .like-i .hint.i, .like-s .hint.s')
     .forEach((el) => {
       el.parentElement.parentElement.classList.add('likely');
     } );