[Rt-commit] rt branch, 4.2/scrips-ui, created. rt-4.0.8-487-g668f172
Thomas Sibley
trs at bestpractical.com
Wed Nov 14 20:06:54 EST 2012
The branch, 4.2/scrips-ui has been created
at 668f172c54a670857fd8cedef37c7b313619e3aa (commit)
- Log -----------------------------------------------------------------
commit 668f172c54a670857fd8cedef37c7b313619e3aa
Author: Thomas Sibley <trs at bestpractical.com>
Date: Wed Nov 14 17:05:39 2012 -0800
Provide a Create link when viewing the "all scrips" page
The "all scrips" page is /Admin/Scrips/, which is distinct from "all
global scrips" page at /Admin/Global/Scrips.html.
The Create page menu item is consistent with other admin pages and the
top level menus.
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 280bc3c..163f383 100644
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -372,6 +372,9 @@ my $build_admin_menu = sub {
$tabs->child( basics => title => loc('Basics') => path => "/Admin/Scrips/Modify.html?id=".$id );
$tabs->child( 'applies-to' => title => loc('Applies to'), path => "/Admin/Scrips/Objects.html?id=" . $id );
}
+ elsif ( $request_path =~ m{^/Admin/Scrips/(index\.html)?$} ) {
+ PageMenu->child( create => title => loc('Create') => path => "/Admin/Scrips/Create.html" );
+ }
}
if ( $request_path =~ m{^/Admin/Global/Scrips\.html} ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list