[rt-users] CONTRIB: Quickpicks v0.3 for WebRT
Jim Meyer
purp at wildbrain.com
Tue Feb 12 19:11:37 EST 2002
Hello!
Here's a greatly improved version of Quickpicks, with the following
improvements:
* Cleaned up tremendously the nasty bookmark URLs I had in there;
I've come to understand better how to do plaintext GET URLs with
RT. [Note: This was easy thanks to all the work that Jesse's
put into making RT modular and easy to understand. See
http://www.bestpractical.com/pricelist.html for ways you can
help RT continue to develop.]
* The "Unresolved Tickets I Requested" pick now works and got moved
to the top as it felt like it should be near "Unrequested Tickets
I Own"
------------------------------------------------------------------------
Quickpicks is a small WebRT element which adds a drop-down menu
containing searches and websites for easy selection. It's smart enough
(just barely ;) to open RT pages in the same window and open non-RT
pages into new windows. Only shows picks related to ticket ownership
("Unresolved Tix I Own" etc.) to privileged users; unprivileged users
see only "Unresolved Tix I Requested" and any external links you
include.
Quickpicks owes its existance to Bruce Campell's post of JumpBar
(thanks, Bruce!); that tool can be found at
http://lists.fsck.com/pipermail/rt-users/2002-January/006330.html
To add this to your RT Start Page:
* Put Quickpicks in RTHOME/WebRT/html/Elements
* chmod a+x Quickpicks
* Add these two lines to RTHOME/WebRT/html/index.html
<& /Elements/Quickpicks &>
<BR>
... above or below these two lines:
<& /Elements/Quicksearch &>
<BR>
You may also want to add it to your
RTHOME/WebRT/html/Search/Listing.html and other places as well.
------------------------------------------------------------------------
The great thing about being alive is learning. I've been having a great
time. =]
Cheers!
--j
--
Jim Meyer, Geek At Large purp at wildbrain.com
-------------- next part --------------
<!-- Quickpicks v0.3 -->
<!-- With great thanks to Bruce Campbell of RIPE -->
<!-- Install in RTHOME/WebRT/html/Elements -->
<& /Elements/TitleBoxStart, title => "QuickPicks" &>
<form name="qpjavaredir" style="margin-left: 2px; margin-top: 2px; margin-bottom: 2px;">
<select class="qpnullclass" name="site" size="1" onchange="if (this.options[selectedIndex].value != '') { if (this.options[selectedIndex].value.indexOf('/') == 0) {location.href = this.options[selectedIndex].value} else {window.open(this.options[selectedIndex].value)} ; this.selectedIndex = 0 }" style="width: 110px;">
<option value="">Choose one ...</option>
<option value="">---------</option>
<option value="/Search/Listing.html?ValueOfRequestor=<%$session{'CurrentUser'}->EmailAddress%>&ValueOfStatus=stalled&ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&RequestorOp=%3D&RowsPerPage=50&NewSearch=1"> Unresolved Tickets I Requested</option>
% if ($session{'CurrentUser'}->Privileged()) {
<option value="/Search/Listing.html?ValueOfOwner=<%$session{'CurrentUser'}->Id%>&ValueOfStatus=stalled&ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&OwnerOp=%3D&RowsPerPage=50&NewSearch=1"> Unresolved Tickets I Own</option>
<option value="/Search/Listing.html?ValueOfOwner=2&ValueOfStatus=stalled&ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&OwnerOp=%3D&RowsPerPage=50&NewSearch=1"> Unresolved & Unowned Tickets</option>
<option value="/Search/Listing.html?ValueOfOwner=2&ValueOfStatus=stalled&ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&OwnerOp=%3D&ValueOfQueue=helpdesk&QueueOp=%3D&RowsPerPage=50&NewSearch=1&TicketsSortBy=Owner&TicketsSortOrder=ASC"> Unresolved Helpdesk Tickets</option>
<option value="/Search/Listing.html?ValueOfStatus=stalled&ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&RowsPerPage=50&NewSearch=1"> All Unresolved Tickets</option>
% }
<option value="">---------</option>
<option value="http://intra.foo.com/"> Intranet Website</option>
<option value="http://support.foo.com/"> Support Website</option>
<option value="">---------</option>
<option value="http://www.google.com/"> Search Google</option>
<option value="https://bugzilla.redhat.com/bugzilla/query.cgi"> Search Redhat's Bugzilla</option>
<option value="http://bugzilla.ximian.com/query.cgi"> Search Ximian's Bugzilla</option>
<option value="http://www.rpmfind.net/"> Search RPMFind</option>
</select>
</form>
<& /Elements/TitleBoxEnd &>
<%INIT>
</%INIT>
More information about the rt-users
mailing list