[Bps-public-commit] RT-BugTracker branch, rt4, created. ec32c3332a4fc52baabfa5ac0ee6e5b20c5e0787

? sunnavy sunnavy at bestpractical.com
Mon Jun 4 10:36:54 EDT 2012


The branch, rt4 has been created
        at  ec32c3332a4fc52baabfa5ac0ee6e5b20c5e0787 (commit)

- Log -----------------------------------------------------------------
commit ec32c3332a4fc52baabfa5ac0ee6e5b20c5e0787
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Jun 4 22:36:03 2012 +0800

    make it work for rt4: new menu framework

diff --git a/html/Callbacks/BugTracker/Elements/Tabs/Default b/html/Callbacks/BugTracker/Elements/Tabs/Privileged
similarity index 91%
copy from html/Callbacks/BugTracker/Elements/Tabs/Default
copy to html/Callbacks/BugTracker/Elements/Tabs/Privileged
index 2add599..a63deac 100644
--- a/html/Callbacks/BugTracker/Elements/Tabs/Default
+++ b/html/Callbacks/BugTracker/Elements/Tabs/Privileged
@@ -46,13 +46,5 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%INIT>
-my $Name = $session{'CurrentUser'}->UserObj->Name;
-
-$toptabs->{Ag} = {
-    title => loc('Distributions'),
-    path  => 'Dist/ByMaintainer.html?Name=' . $Name,
-};
+  $m->comp('/Callbacks/BugTracker/Elements/Tabs/SelfService');
 </%INIT>
-<%ARGS>
-$toptabs => undef
-</%ARGS>
diff --git a/html/Callbacks/BugTracker/Elements/Tabs/Default b/html/Callbacks/BugTracker/Elements/Tabs/SelfService
similarity index 93%
rename from html/Callbacks/BugTracker/Elements/Tabs/Default
rename to html/Callbacks/BugTracker/Elements/Tabs/SelfService
index 2add599..4694009 100644
--- a/html/Callbacks/BugTracker/Elements/Tabs/Default
+++ b/html/Callbacks/BugTracker/Elements/Tabs/SelfService
@@ -48,11 +48,8 @@
 <%INIT>
 my $Name = $session{'CurrentUser'}->UserObj->Name;
 
-$toptabs->{Ag} = {
-    title => loc('Distributions'),
-    path  => 'Dist/ByMaintainer.html?Name=' . $Name,
-};
+Menu()->child(
+    by_maintainer => title => loc('Distributions'),
+    path        => '/Dist/ByMaintainer.html?Name=' . $Name,
+);
 </%INIT>
-<%ARGS>
-$toptabs => undef
-</%ARGS>

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list