case 'go-content-id':
case 'go-userid':
case 'go-username':
+ case 'go-bugzilla':
auto_action = cur_action.id;
break;
default:
case 'go-content-id':
case 'go-ttv-page':
case 'go-userid':
+ case 'go-bugzilla':
// find longest id in entered url
var max_len = 0;
var cur_id;
validState = false;
longest_id = '?';
}
- action_uses_opdatering = true;
- site = (action == 'go-userid' ? 'login' : 'i2');
+ if (action != 'go-bugzilla') {
+ action_uses_opdatering = true;
+ site = (action == 'go-userid' ? 'login' : 'i2');
+ }
break;
case 'go-pdolog':
php4 = false; // not allowed
// Just assume a username was entered
uri = '/opslag.php?username=' + go_username;
break;
+ case 'go-bugzilla':
+ // Use longest_id as bugzilla number
+ uri = '/show_bug.cgi?format=multiple&id=' + longest_id;
+ protocol='http';
+ sitetype='webroot';
+ site = 'bugzilla';
+ php4 = false;
+ break;
case 'go-node':
uri = '/tool/node/?id=' + longest_id;
break;
_reg_viewcvsviewsource: /^\?(?:.*&)?view=markup(?:&|#|$)/,
_reg_fromi2if: /^http:\/\/i2\.(?:[^.]+\.)?opdatering\.(?:(?:test|snapshot)\.)?tv2\.dk\/(tango\/(entry|requeue|dynamic)|tool\/pdo_log\/frameset)\.php.*?(?:\?|&)url=([^&]+)/,
_reg_fromloginif: /^http:\/\/login\.(?:([^.]+)\.)?opdatering\.(?:(test|snapshot)\.)?tv2\.dk\/opslag\.php.*?(?:\?|&)(user_id|username)=([^&]+)/,
+ _reg_frombugzilla: /^http:\/\/bugzilla\.tv2\.dk\/(show_bug.cgi.*?(?:\?|&)id=([0-9]+))?/,
_extractURL: function(url) {
var action = 'go-site';
}
}
+ /* Extract from bugzilla site */
+ var bugzillaif = this._reg_frombugzilla.exec(url);
+ if (bugzillaif) {
+ action = 'go-bugzilla';
+ if (bugzillaif[2]) {
+ url = bugzillaif[2];
+ } else {
+ url = '';
+ }
+ }
+
/* Extract link from ViewCVS site */
var fromviewcvs = this._reg_fromviewcvs.exec(url);
if (fromviewcvs) {
<radio id="go-ttv-page" label="&quickbox.ttvpage;" accesskey="&quickbox.ttvpage.accesskey;"/>
<radio id="go-userid" label="&quickbox.userid;" accesskey="&quickbox.userid.accesskey;"/>
<radio id="go-username" label="&quickbox.username;" accesskey="&quickbox.username.accesskey;"/>
+ <radio id="go-bugzilla" label="&quickbox.bugzilla;" accesskey="&quickbox.bugzilla.accesskey;"/>
</groupbox>
</hbox>
</radiogroup>
<!ENTITY quickbox.userid "Slå op som Bruger ID">
<!ENTITY quickbox.userid.accesskey "j">
+<!ENTITY quickbox.bugzilla "Slå op i Bugzilla">
+<!ENTITY quickbox.bugzilla.accesskey "z">
+
<!ENTITY quickbox.openin "Åbn i">
<!ENTITY quickbox.openin.current "nuværende vindue">
-<!ENTITY quickbox.openin.current.accesskey "z">
+<!ENTITY quickbox.openin.current.accesskey "m">
<!ENTITY quickbox.openin.newtab "ny tab">
<!ENTITY quickbox.openin.newtab.accesskey "a">
<!ENTITY quickbox.userid "Lookup as User ID">
<!ENTITY quickbox.userid.accesskey "j">
+<!ENTITY quickbox.bugzilla "Lookup as Bugzilla ID">
+<!ENTITY quickbox.bugzilla.accesskey "z">
+
<!ENTITY quickbox.openin "Open in">
<!ENTITY quickbox.openin.current "current window">
-<!ENTITY quickbox.openin.current.accesskey "z">
+<!ENTITY quickbox.openin.current.accesskey "k">
<!ENTITY quickbox.openin.newtab "new tab">
<!ENTITY quickbox.openin.newtab.accesskey "a">
<li>Genkender URL angivet som parameter i fleste i2-interfaces</li>
<li>Ved ViewCVS genkendes specielle sites så som <code>globals</code> og specielle mapper så som <code>inc</code>, brug dobbelt slash (<code>//</code>) efter projektnavn for at undgå dette.</li>
<li>Slå TV 2 Login brugere op pr. navn eller id</li>
+ <li>Slå Bugzilla opgave op</li>
</ul>
<div class="center">
<a href="https://jkkn.dk/tv2developer/tv2developer.xpi">Install now</a>