[Rt-commit] r3158 - in rtfm/branches/2.1-TESTING: .
html/Admin/RTFM/Elements html/RTFM/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Tue Jun 14 23:24:36 EDT 2005
Author: alexmv
Date: Tue Jun 14 23:24:36 2005
New Revision: 3158
Modified:
rtfm/branches/2.1-TESTING/ (props changed)
rtfm/branches/2.1-TESTING/html/Admin/RTFM/Elements/Tabs
rtfm/branches/2.1-TESTING/html/RTFM/Elements/Tabs
Log:
r4231 at zoq-fot-pik: chmrr | 2005-06-14 23:23:42 -0400
* Add configuration tab under RTFM, if the user can see it
* Add link into custom fields under RTFM configuration
Modified: rtfm/branches/2.1-TESTING/html/Admin/RTFM/Elements/Tabs
==============================================================================
--- rtfm/branches/2.1-TESTING/html/Admin/RTFM/Elements/Tabs (original)
+++ rtfm/branches/2.1-TESTING/html/Admin/RTFM/Elements/Tabs Tue Jun 14 23:24:36 2005
@@ -27,6 +27,9 @@
Global => { title => loc('Global'),
path => 'Admin/RTFM/Global/index.html',
},
+ CFs => { title => loc('Custom Fields'),
+ path => 'Admin/CustomFields/index.html?type=RT::FM::Class-RT::FM::Article',
+ },
};
foreach my $tab (sort keys %{$tabs}) {
if ($tabs->{$tab}->{'path'} eq $current_tab) {
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Elements/Tabs
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Elements/Tabs (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Elements/Tabs Tue Jun 14 23:24:36 2005
@@ -47,6 +47,13 @@
path => 'RTFM/Topics.html'},
};
+if ($session{'CurrentUser'}->HasRight( Right => 'ShowConfigTab',
+ Object => $RT::System )) {
+ $second_tabs->{config} = { title => loc('Configuration'),
+ path => 'Admin/RTFM/index.html',
+ };
+}
+
my $topactions = {
B => { html => $m->scomp('/RTFM/Elements/GotoArticle', %ARGS) }
};
More information about the Rt-commit
mailing list