[Rt-commit] rtir branch 5.0/configure-system-homepage created. 5.0.1-30-ge4119d21
BPS Git Server
git at git.bestpractical.com
Thu Nov 4 19:56:29 UTC 2021
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".
The branch, 5.0/configure-system-homepage has been created
at e4119d210f2c3ed24dede4145ef4addad563902f (commit)
- Log -----------------------------------------------------------------
commit e4119d210f2c3ed24dede4145ef4addad563902f
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Nov 5 03:48:31 2021 +0800
Support to configure RTIR homepage globally
diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index eabfbde0..2c163dfe 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -54,6 +54,22 @@ my $query_string = sub {
return $u->query || '';
};
+if ( my $admin = Menu->child('admin') ) {
+ if ( my $global = $admin->child('global') ) {
+ $global->child(
+ 'my-rtir' => title => 'RTIR at a glance',
+ path => '/Admin/Global/MyRT.html?'
+ . $query_string->(
+ Title => loc('Customize Global RTIR at a glance'),
+ WidgetTitle => loc('Set RTIR Homepage'),
+ AttributeName => 'RTIRDefaultDashboard',
+ AttributeDescription => 'RTIR Default Dashboard',
+ ),
+ sort_order => 8.1,
+ );
+ }
+}
+
my $args = $DECODED_ARGS;
my @query_fields = qw(Query Format RowsPerPage Page OrderBy Order ExtraQueryParams);
-----------------------------------------------------------------------
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list