| On 00-12-19 Brandon S. Allbery KF8NH wrote:
| > On Tuesday, December 19, 2000 03:43:36 PM +0100, Christian Kurz| > Christian.Kurz@planNET.de wrote:
| > ±----
| > | Hi,
| > |
| > | if I open a ticket I get the following selection in the first
| paragraph > | “Comment | Reply | Take | Resolve”. Which part of the code
| of webrt do I > | need to change to also have a “Display Queue” link in
| this line? Thanks. > ±–>8
|
| > sub do_bar in lib/rt/ui/web/manipulate.pm
|
| And what Code? I just tried to do solve this with " “<A
| HREF="$ScriptURL">Display Queue”. " | " ." but then the line is
| not center anymore. So what would be the correct code for this?
±–>8
Where did you insert your code? It should go between the statement
printing “<DIV ALIGN="CENTER">” and the one printing “”.
My code (which probably has little relation to stock RT1.x any more is:
(modulo line wrapping…)
print "<A
HREF="$ScriptURL?${cookie}display=History&serial_num=$prev">Previous"
if defined $prev;
print " | " if defined $prev && (defined $next ||
$rt::req[$serial_num]{‘status’} ne ‘dead’);
if ($rt::req[$serial_num]{‘status’} ne ‘dead’) {
print
&fdro_murl(“${cookie}display=SetComment”,“history”,“Comment”). " | " .
&fdro_murl(“${cookie}display=SetReply”,“history”,“Reply”);
if ($rt::req[$serial_num]{'owner'} eq '') {
print " | ".
&fdro_murl(“${cookie}do_req_give=true&do_req_give_to=$current_user&display=
History”,“summary”,“Take”) ;
}
if ($rt::users{$current_user}{admin_rt} &&
$rt::req[$serial_num]{status} ne ‘resolved’) {
print " | " . &fdro_murl(“${cookie}display=SetKill”, “summary”,
“Kill”);
if ($rt::users{$current_user}{admin_rt} &&
$rt::req[$serial_num]{status} ne ‘resolved’) {
print " | " . &fdro_murl(“${cookie}display=SetKill”, “summary”,
“Kill”); }
if ($rt::req[$serial_num]{‘status’} ne ‘resolved’) {
print " | ".
&fdro_murl(“${cookie}do_req_resolve=true&display=History”,“summary”,“Resolv
e”);
}
if ($rt::req[$serial_num]{‘status’} ne ‘open’) {
print " | " .
&fdro_murl(“${cookie}do_req_open=true&display=History”,“summary”,“Open”);
}
}
print " | " if $rt::req[$serial_num]{status} ne ‘dead’ && defined $next;
print “<A
HREF="$ScriptURL?${cookie}display=History&serial_num=$next">Next” if
defined $next;
brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
electrical and computer engineering KF8NH
carnegie mellon university [“better check the oblivious first” -ke6sls]