[rt-users] Change the "Modify Ticket" options on blue bar
Stephen Turner
sturner at MIT.EDU
Fri May 16 16:04:07 EDT 2008
At 08:16 PM 5/15/2008, Kenneth Crocker wrote:
>To all,
>
>
> I want to add a couple options to the blue bar where it
> displays "open
> comments reply resolve". Where would I find that code and any
>related elements? thanks in advance.
>
>
>Kenn
>LBNL
Kenn,
These links are defined in html/Ticket/Elements/Tabs. You may be able
to add what you want through a default callback for this element (the
links are stored in a hash called %$actions) or you can definitely
add links directly to the Tabs element itself. Here's our example, in
the Tabs file itself:
if ($Ticket->IsOwner($session{CurrentUser})) {
$actions->{'Bb'} = {path =>
"Ticket/Display.html?Action=Untake&id=" . $Ticket->id,
title => loc('Release') };
}
This gives a link that allows a user to release (or "untake") a
ticket that they own. The 'Bb' identifier places the link between
links 'B' and 'C' ('Take' and 'Steal' respectively).
Steve
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>Community help: http://wiki.bestpractical.com
>Commercial support: sales at bestpractical.com
>
>
>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list