]> git.ktnx.net Git - icedeb.git/commitdiff
add a button for querying DDPO
authorDamyan Ivanov <dmn@debian.org>
Tue, 10 Jan 2012 15:02:20 +0000 (17:02 +0200)
committerDamyan Ivanov <dmn@debian.org>
Tue, 10 Jan 2012 15:02:20 +0000 (17:02 +0200)
README
chrome/content/icedeb-ddpo.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
install.rdf
res/button-bts.xcf

diff --git a/README b/README
index bf856a8d1c56592d9efda103bcb66ea230b26604..45e08110a675d8be8cd28baa4401a28a0697cbfc 100644 (file)
--- a/README
+++ b/README
@@ -30,7 +30,7 @@ SOFTWARE.
 All the rest
 ------------
 
 All the rest
 ------------
 
-Copyright (C) 2009, 2010, 2011 Damyan Ivanov <dmn@debian.org>
+Copyright (C) 2009, 2010, 2011, 2012 Damyan Ivanov <dmn@debian.org>
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
diff --git a/chrome/content/icedeb-ddpo.png b/chrome/content/icedeb-ddpo.png
new file mode 100644 (file)
index 0000000..17b81ac
Binary files /dev/null and b/chrome/content/icedeb-ddpo.png differ
index 2bca4e364bab0bc59b2d3796496a3d65fadd34b1..c0f09fd8fb36676f8535d9264252648abc52361d 100644 (file)
 #wrapper-icedeb-ml
 {list-style-image: url("chrome://icedeb/content/icedeb-ml.png");}
 
 #wrapper-icedeb-ml
 {list-style-image: url("chrome://icedeb/content/icedeb-ml.png");}
 
+#icedeb-ddpo,
+#wrapper-icedeb-ddpo
+{list-style-image: url("chrome://icedeb/content/icedeb-ddpo.png");}
+
 /* common style for all custom buttons */
 .icedeb-button
 {-moz-image-region: rect( 0px 24px 24px  0px);}
 /* common style for all custom buttons */
 .icedeb-button
 {-moz-image-region: rect( 0px 24px 24px  0px);}
index 9c393462bca055985bcc77c96c320bd50705dafb..236112a0e51589694d39d41135725b452adefb8f 100644 (file)
@@ -99,6 +99,21 @@ IceDeb = {
             loadURI(uri);
         }
     },
             loadURI(uri);
         }
     },
+    lookup_ddpo: function(in_new) {
+        var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        var uri="http://qa.debian.org/developer.php";
+
+        if (keyword) uri += "?login=" + 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 )
 
     btsButton: function (e) {
         if ( e.button == 0 )
@@ -123,6 +138,12 @@ IceDeb = {
             IceDeb.lookup_ml(false)
         else if ( e.button == 1 )
             IceDeb.lookup_ml(true);
             IceDeb.lookup_ml(false)
         else if ( e.button == 1 )
             IceDeb.lookup_ml(true);
+    },
+    ddpoButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_ddpo(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_ddpo(true);
     }
 }
 
     }
 }
 
index af44767abd6b2f467da85f7bd24405ad7ee8edc9..d173358cf3e15b06a7c72132a4d8acc904c02020 100644 (file)
@@ -16,6 +16,7 @@
   <toolbarbutton id="icedeb-pts"/>
   <toolbarbutton id="icedeb-deb"/>
   <toolbarbutton id="icedeb-ml"/>
   <toolbarbutton id="icedeb-pts"/>
   <toolbarbutton id="icedeb-deb"/>
   <toolbarbutton id="icedeb-ml"/>
+  <toolbarbutton id="icedeb-ddpo"/>
   </toolbarpalette>
 
 
   </toolbarpalette>
 
 
   class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ml icedeb-button"
   />
 
   class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ml icedeb-button"
   />
 
+<toolbarbutton id="icedeb-ddpo"
+  label="&ddpo.label;"
+  tooltiptext="&ddpo.tooltiptext;"
+  onclick="IceDeb.ddpoButton(event)"
+  class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ddpo icedeb-button"
+  />
+
 </overlay>
 
 </overlay>
 
index 198a76a8e8b9c1c085817bd4da5cded0c853b26c..550f8ae8d68f50a86bb9e8a48d8c00434dddc680 100644 (file)
@@ -6,3 +6,5 @@
 <!ENTITY deb.tooltiptext "Информация за пакет">
 <!ENTITY ml.label "Списъци">
 <!ENTITY ml.tooltiptext "Търсене по идентификатор на съобщение в пощенските списъци на Дебиан">
 <!ENTITY deb.tooltiptext "Информация за пакет">
 <!ENTITY ml.label "Списъци">
 <!ENTITY ml.tooltiptext "Търсене по идентификатор на съобщение в пощенските списъци на Дебиан">
+<!ENTITY ddpo.label "Обзор">
+<!ENTITY ddpo.tooltiptext "Обобщена информация за пакетите на даден разработчик на Дебиан">
index d8651fb130d0976e8402bd8de1394ceed5a321fb..d45e5b775981ecc51a7f90f67431978a6df6e1fd 100644 (file)
@@ -6,3 +6,5 @@
 <!ENTITY deb.tooltiptext "Show information about binary deb package">
 <!ENTITY ml.label "Debian ML">
 <!ENTITY ml.tooltiptext "Search Debian mailing list by message ID">
 <!ENTITY deb.tooltiptext "Show information about binary deb package">
 <!ENTITY ml.label "Debian ML">
 <!ENTITY ml.tooltiptext "Search Debian mailing list by message ID">
+<!ENTITY ddpo.label "DDPO">
+<!ENTITY ddpo.tooltiptext "Show an overview of Debian developer contributions">
index 32143cb2560c900684abf0cbaf5eb2c9923ef7a7..7b36bd9654542d68f125b1f8949294c4980fb4bd 100644 (file)
@@ -2,7 +2,7 @@
 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
   <Description about="urn:mozilla:install-manifest">
     <em:name>Debian buttons</em:name>
 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
   <Description about="urn:mozilla:install-manifest">
     <em:name>Debian buttons</em:name>
-    <em:description>Collection of buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number, message-ID) and click on one of the buttons. Clicking with the middle mouse button opens a new tab.</em:description>
+    <em:description>Buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number, message-ID, developer ID/email) and click on one of the buttons. Clicking with the middle mouse button opens a new tab.</em:description>
     <em:creator>Damyan Ivanov</em:creator>
     <em:id>{8fb11c5b-84eb-4da0-9128-292eacce2dcb}</em:id>
     <em:version>1.5</em:version>
     <em:creator>Damyan Ivanov</em:creator>
     <em:id>{8fb11c5b-84eb-4da0-9128-292eacce2dcb}</em:id>
     <em:version>1.5</em:version>
index 0f1c5a67bce39c7e1e556c92df6b7dc3b15cc96f..2825bee449eeec1e2194722bdacacfb39f1c0798 100644 (file)
Binary files a/res/button-bts.xcf and b/res/button-bts.xcf differ