MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 59974 of Template:bug

  • Revision slug: Template:bug
  • Revision title: Template:bug
  • Revision id: 59974
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 2 words added, 1 words removed
Tags: 

Revision Content

var bugPageURL = 'https://bugzilla.mozilla.org/show_bug.cgi?id=' + $0;
/*var bugPageXML = web.xml(bugPageURL);*/
var s = "";
/*if (#bugPageXML == 0)
  s = "Unable to access bug's page. Try reloading this page to see bug's status and summary in this tooltip.";
else{
  s = xml.text(bugPageXML, '//span[@id="static_bug_status"]');
  if (s){
    // Remove \n and redundant spaces
    s = string.trimEnd(string.replace(s, "\n", ""));
    if (string.contains(s, "  "))
      s = string.join(list.select(string.split(s, " "), "#$>0"), " ");
    s += ' - ' + xml.text(bugPageXML, '//span[@id="short_desc_nonedit_display"]');
  }
  else if (string.contains(bugPageXML, "Access Denied"))
    s = "The access to the bug's page is restricted.";
}
*/
xml.text(localString({en: "bug ", ca: "errada ", cs: "chyba ", pl: "błąd "})) + $0;

Revision Source

<pre class="script" style="font-size: 16px; clear: both;">
var bugPageURL = 'https://bugzilla.mozilla.org/show_bug.cgi?id=' + $0;
/*var bugPageXML = web.xml(bugPageURL);*/
var s = "";
/*if (#bugPageXML == 0)
  s = "Unable to access bug's page. Try reloading this page to see bug's status and summary in this tooltip.";
else{
  s = xml.text(bugPageXML, '//span[@id="static_bug_status"]');
  if (s){
    // Remove \n and redundant spaces
    s = string.trimEnd(string.replace(s, "\n", ""));
    if (string.contains(s, "  "))
      s = string.join(list.select(string.split(s, " "), "#$>0"), " ");
    s += ' - ' + xml.text(bugPageXML, '//span[@id="short_desc_nonedit_display"]');
  }
  else if (string.contains(bugPageXML, "Access Denied"))
    s = "The access to the bug's page is restricted.";
}
*/
<a rel="external" href=(bugPageURL) class="external" title=(s)>xml.text(localString({en: "bug ", ca: "errada ", cs: "chyba ", pl: "błąd "})) + $0</a>;
</pre>
Revert to this revision