]> git.ktnx.net Git - icedeb.git/commitdiff
add security-tracker button
authorDamyan Ivanov <dmn@debian.org>
Fri, 20 Jan 2012 20:26:31 +0000 (22:26 +0200)
committerDamyan Ivanov <dmn@debian.org>
Fri, 20 Jan 2012 20:26:31 +0000 (22:26 +0200)
Suggested by Paul Wise

chrome/content/icedeb-security.png [new file with mode: 0644]
chrome/content/icedeb.css
chrome/content/icedeb.js
chrome/content/icedeb.xul
chrome/locale/bg-BG/icedeb.dtd
chrome/locale/en-US/icedeb.dtd
res/button-bts.xcf

diff --git a/chrome/content/icedeb-security.png b/chrome/content/icedeb-security.png
new file mode 100644 (file)
index 0000000..b45ab7d
Binary files /dev/null and b/chrome/content/icedeb-security.png differ
index 6be7df7031891f76a87988bd874db295fc5cdee3..acd8e434f7afb1eb52e835ad3b83e246c5886d57 100644 (file)
 #wrapper-icedeb-buildd
 {list-style-image: url("chrome://icedeb/content/icedeb-buildd.png");}
 
+#icedeb-security,
+#wrapper-icedeb-security
+{list-style-image: url("chrome://icedeb/content/icedeb-security.png");}
+
 /* common style for all custom buttons */
 .icedeb-button
 {-moz-image-region: rect( 0px 24px 24px  0px);}
index 742ca822dafc54c2a1631d55472f31e55995218b..e6c7adbcc2f0b3d4d487cb5ff04a607c5701e20b 100644 (file)
@@ -129,6 +129,21 @@ IceDeb = {
             loadURI(uri);
         }
     },
+    lookup_security: function(in_new) {
+        var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        var uri="http://security-tracker.debian.org/";
+
+        if (keyword) uri += "tracker/" + keyword;
+
+        if (in_new) {
+            var b = getBrowser();
+            var new_tab = b.addTab(uri);
+            b.selectedTab = new_tab;
+        }
+        else {
+            loadURI(uri);
+        }
+    },
 
     btsButton: function (e) {
         if ( e.button == 0 )
@@ -165,6 +180,12 @@ IceDeb = {
             IceDeb.lookup_buildd(false)
         else if ( e.button == 1 )
             IceDeb.lookup_buildd(true);
+    },
+    securityButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_security(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_security(true);
     }
 }
 
index b7bdf6f622ee19abde011cd8277a13ab37fea113..7b8e347f7606d0a5deb6341a873f843b2bb14a23 100644 (file)
@@ -18,6 +18,7 @@
   <toolbarbutton id="icedeb-ml"/>
   <toolbarbutton id="icedeb-ddpo"/>
   <toolbarbutton id="icedeb-buildd"/>
+  <toolbarbutton id="icedeb-security"/>
   </toolbarpalette>
 
 
   class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-buildd icedeb-button"
   />
 
+<toolbarbutton id="icedeb-security"
+  label="&security.label;"
+  tooltiptext="&security.tooltiptext;"
+  onclick="IceDeb.securityButton(event)"
+  class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-security icedeb-button"
+  />
+
 </overlay>
 
index 1ef9f1d378e82297e6d35a90cace373ad3181159..9d2f584d16cac2c33334761cb4b38be3a0480571 100644 (file)
@@ -10,3 +10,5 @@
 <!ENTITY ddpo.tooltiptext "Обобщена информация за пакетите на даден разработчик на Дебиан">
 <!ENTITY buildd.label "журнали от компилацията">
 <!ENTITY buildd.tooltiptext "Информация от системите за автоматично компилиране на пакети">
+<!ENTITY security.label "информация за сигурността">
+<!ENTITY security.tooltiptext "Информация от сигурността на пакет или доклад на mitre.org (CVE)">
index 97aace9be4da7954c9aa3de6a9970eb3a3920c57..86270ebd9081afaea3c5a6de18ebf39e55bb2bde 100644 (file)
@@ -10,3 +10,5 @@
 <!ENTITY ddpo.tooltiptext "Show an overview of Debian developer contributions">
 <!ENTITY buildd.label "build logs">
 <!ENTITY buildd.tooltiptext "Show logs from Debian auto-builders">
+<!ENTITY security.label "security information">
+<!ENTITY security.tooltiptext "Information about package security status or mitre.org report (CVE)">
index afb442774e9dafb4044eac71b3dd2679775bc9d0..5d66e0759ddc6362b341aca5c54ac1782df40756 100644 (file)
Binary files a/res/button-bts.xcf and b/res/button-bts.xcf differ