Skip to content

Commit

Permalink
Item2197: Finish port and release.
Browse files Browse the repository at this point in the history
Need to use Foswiki 1.x format of PUBURLPATH macro.
  • Loading branch information
gac410 committed Apr 11, 2017
1 parent ec33bbb commit 039e68d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions data/System/BugzillaLinkPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1488221926" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1491870602" format="1.1" version="1"}%
---+ <nop>%TOPIC%

This plugin provides shorthand for linking to [[http://www.bugzilla.org/][Bugzilla]] bugs without specifying a URL in longhand.
Expand Down Expand Up @@ -28,11 +28,11 @@ The following =%<nop>BUG*{...}%= short hand references are supported:
---++ Examples

|You type:|You get: (simulated)|You get: (if installed)|
|%<nop>BUG{242971}%|<img src='%PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%' alt='bug' /> [[http://bugzilla.mozilla.org/show_bug.cgi?id=242971][Bug #242971]]|%BUG{242971}%|
|%<nop>BUGLISTMS{Firefox1.0}%|<img src='%PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?target_milestone=Firefox1.0b&target_milestone=Firefox1.0][Buglist for milestone Firefox1.0]]|%BUGLISTMS{Firefox1.0}%|
|%<nop>BUGLISTKEY{highrisk,64bit}%|<img src='%PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?keywords_type=anywords&keywords=highrisk+64bit][Buglist for keyword(s) "highrisk,64bit"]]|%BUGLISTKEY{highrisk,64bit}%|
|%<nop>BUGLISTKEY{crash+fonts}%|<img src='%PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?keywords_type=allwords&keywords=crash+fonts][Buglist for keyword(s) "crash+fonts"]]|%BUGLISTKEY{crash+fonts}%|
|%<nop>MYBUGS{shaver@mozilla.org}%|<img src='%PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=shaver@mozilla.org&emailtype1=exact&emailassigned_to1=1&emailreporter1=1][Buglist for shaver@mozilla.org]]|%MYBUGS{shaver@mozilla.org}%|
|%<nop>BUG{242971}%|<img src='%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png' alt='bug' /> [[http://bugzilla.mozilla.org/show_bug.cgi?id=242971][Bug #242971]]|%BUG{242971}%|
|%<nop>BUGLISTMS{Firefox1.0}%|<img src='%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?target_milestone=Firefox1.0b&target_milestone=Firefox1.0][Buglist for milestone Firefox1.0]]|%BUGLISTMS{Firefox1.0}%|
|%<nop>BUGLISTKEY{highrisk,64bit}%|<img src='%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?keywords_type=anywords&keywords=highrisk+64bit][Buglist for keyword(s) "highrisk,64bit"]]|%BUGLISTKEY{highrisk,64bit}%|
|%<nop>BUGLISTKEY{crash+fonts}%|<img src='%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?keywords_type=allwords&keywords=crash+fonts][Buglist for keyword(s) "crash+fonts"]]|%BUGLISTKEY{crash+fonts}%|
|%<nop>MYBUGS{shaver@mozilla.org}%|<img src='%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png' alt='bug' /> [[http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=shaver@mozilla.org&emailtype1=exact&emailassigned_to1=1&emailreporter1=1][Buglist for shaver@mozilla.org]]|%MYBUGS{shaver@mozilla.org}%|


---++ <nop>%TOPIC% Settings
Expand All @@ -49,7 +49,7 @@ Set DEBUG to 1 to get debug messages in =data/debug.txt=. Default: =0=
URL references to your Bugzilla installation and to the bug image
* Set BUGZILLALINKPLUGIN_BUGURL = http://bugzilla.mozilla.org/show_bug.cgi?id=
* Set BUGZILLALINKPLUGIN_BUGLISTURL = http://bugzilla.mozilla.org/buglist.cgi?
* Set BUGZILLALINKPLUGIN_BUGIMGURL = %PUBURLPATH{topic="System.BugzillaLinkPlugin" "bug_small.png"}%
* Set BUGZILLALINKPLUGIN_BUGIMGURL = %PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug_small.png

Text references for automatic substitution
* Set BUGZILLALINKPLUGIN_BUGTEXT = Bug #
Expand All @@ -63,7 +63,7 @@ Text references for automatic substitution
---++ Plugin Info
%TABLE{columnwidths="7em" tablewidth="100%"}%
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 27 Feb 2017 (1.400) | Ported to Foswiki, Modernize, change to use Registered macros, eliminate plugin topic settings. |
| 10 Apr 2017 (1.400) | Ported to Foswiki, Modernize, change to use Registered macros, eliminate plugin topic settings. |
| 03 Oct 2005 (1.300) | Fixes for Dakar, added BUGLISTKEY function, refactored Settings (TWiki:Main.JoanTouzet) |
| 08 Jul 2003 | Added MYBUGS function (TWiki:Main.SteveKostecke), dealing with whitespace (TWiki:Main.AlanShields) |
| 19 Aug 2002 | Added BUGLIST function, renamed to BugzillaLinkPlugin (TWiki:Main.AnthonPang ?) |
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/BugzillaLinkPlugin.pm
Expand Up @@ -9,7 +9,7 @@ use strict;
use warnings;

our $VERSION = '1.400';
our $RELEASE = '1 Mar 2017';
our $RELEASE = '10 Apr 2017';
our $SHORTDESCRIPTION = 'Render links to Bugzilla repositories.';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down Expand Up @@ -39,7 +39,7 @@ sub initPlugin {
|| "http://localhost/bugzilla/show_bug.cgi?id=";
$bugImgUrl =
&Foswiki::Func::getPreferencesValue("BUGZILLALINKPLUGIN_BUGIMGURL")
|| '%PUBURLPATH{topic="%SYSTEMWEB%.BugzillaLinkPlugin" "bug.gif"}%';
|| '%PUBURLPATH%/%SYSTEMWEB%/BugzillaLinkPlugin/bug.gif';
$bugListUrl =
&Foswiki::Func::getPreferencesValue("BUGZILLALINKPLUGIN_BUGLISTURL")
|| "http://localhost/bugzilla/buglist.cgi?";
Expand Down Expand Up @@ -121,7 +121,7 @@ sub _BugzillaShowMyBugList {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2013 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2017 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit 039e68d

Please sign in to comment.