Patches: current_subtab

I’ve noticed that webrt/Elements/Tabs knows about $current_subtab, and I
really do like having extra shadings on my configuration windows.

rt/webrt/NoAuth/webrt.css needs:

40a41,42

.subtab { background-color: #cccccc; }

rt/webrt/Elements/Tabs needs:
50c50,55
< [<% $subtabs->{$tab}->{‘title’}%>]

        [<A

% if ($current_subtab eq $subtabs->{$tab}->{‘path’}) {
class=‘subtab’
% }
HREF="<%$RT::WebPath%>/<% $subtabs->{$tab}->{‘path’}%>"><% $subtabs->{$tab}->{‘title’}%>
]

rt/webrt/Admin/Elements/QueueTabs needs
1c1
< <& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => ‘Admin/Queues/’ &>

<& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => ‘Admin/Queues/’, current_subtab => $current_subtab &>
35a36
$current_subtab => undef

Below here we go into Queue Specifics.

rt/webrt/Admin/Queues/GroupRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/GroupRights.html?id=’.$id &>

rt/webrt/Admin/Queues/Keywords.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>

<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Keywords.html?id=’.$QueueObj->Id &>

rt/webrt/Admin/Queues/Modify.html needs:
1,2c1,2
< <& /Admin/Elements/Header, Title => ‘Admin/Queue/Basics’ &>
< <& /Admin/Elements/QueueTabs, id => $QueueObj->id &>

<& /Admin/Elements/Header, title => ‘Admin/Queue/Basics’ &>
<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Modify.html?id=’.$QueueObj->Id &>

rt/webrt/Admin/Queues/People.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/People.html?id=’.$id &>

rt/webrt/Admin/Queues/Scrips.html needs:
2c2,4
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>

<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Scrips.html?id=’.$id &>

rt/webrt/Admin/Queues/Template.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue &>

<& /Admin/Elements/QueueTabs, id => $Queue, current_subtab => ‘Admin/Queues/Template.html?id=’.$Queue &>

rt/webrt/Admin/Queues/Templates.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue->id &>

<& /Admin/Elements/QueueTabs, id => $Queue->id, current_subtab => ‘Admin/Queues/Templates.html?id=’.$Queue->id &>

rt/webrt/Admin/Queues/UserRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/UserRights.html?id=’.$id &>

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

Would you happen to have the same patch available as a single patch, rather
than a collection? If not, I can deal, but it’be cooler to do that with
one command :wink:

-jOn Wed, Jan 30, 2002 at 04:21:37PM +0100, Bruce Campbell wrote:

I’ve noticed that webrt/Elements/Tabs knows about $current_subtab, and I
really do like having extra shadings on my configuration windows.

rt/webrt/NoAuth/webrt.css needs:

40a41,42

.subtab { background-color: #cccccc; }

rt/webrt/Elements/Tabs needs:
50c50,55
< [<% $subtabs->{$tab}->{‘title’}%>]

        [<A

% if ($current_subtab eq $subtabs->{$tab}->{‘path’}) {
class=‘subtab’
% }
HREF="<%$RT::WebPath%>/<% $subtabs->{$tab}->{‘path’}%>"><% $subtabs->{$tab}->{‘title’}%>
]

rt/webrt/Admin/Elements/QueueTabs needs
1c1
< <& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => ‘Admin/Queues/’ &>

<& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => ‘Admin/Queues/’, current_subtab => $current_subtab &>
35a36
$current_subtab => undef

Below here we go into Queue Specifics.

rt/webrt/Admin/Queues/GroupRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/GroupRights.html?id=’.$id &>

rt/webrt/Admin/Queues/Keywords.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>

<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Keywords.html?id=’.$QueueObj->Id &>

rt/webrt/Admin/Queues/Modify.html needs:
1,2c1,2
< <& /Admin/Elements/Header, Title => ‘Admin/Queue/Basics’ &>
< <& /Admin/Elements/QueueTabs, id => $QueueObj->id &>

<& /Admin/Elements/Header, title => ‘Admin/Queue/Basics’ &>
<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Modify.html?id=’.$QueueObj->Id &>

rt/webrt/Admin/Queues/People.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/People.html?id=’.$id &>

rt/webrt/Admin/Queues/Scrips.html needs:
2c2,4
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>

<& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => ‘Admin/Queues/Scrips.html?id=’.$id &>

rt/webrt/Admin/Queues/Template.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue &>

<& /Admin/Elements/QueueTabs, id => $Queue, current_subtab => ‘Admin/Queues/Template.html?id=’.$Queue &>

rt/webrt/Admin/Queues/Templates.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue->id &>

<& /Admin/Elements/QueueTabs, id => $Queue->id, current_subtab => ‘Admin/Queues/Templates.html?id=’.$Queue->id &>

rt/webrt/Admin/Queues/UserRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>

<& /Admin/Elements/QueueTabs, id => $id, current_subtab => ‘Admin/Queues/UserRights.html?id=’.$id &>


Bruce Campbell RIPE
Systems/Network Engineer NCC
www.ripe.net - PGP562C8B1B Operations


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.

Would you happen to have the same patch available as a single patch, rather
than a collection? If not, I can deal, but it’be cooler to do that with
one command :wink:

Urm, not in this case… working copies are getting out of date (I should
upgrade, I know), sorry.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations