Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt-extension-jsgantt
Commits
01ab4582
Commit
01ab4582
authored
Feb 07, 2014
by
sunnavy
Browse files
show Gantt link on more /Search/ pages when possible
parent
d07cd301
Changes
1
Hide whitespace changes
Inline
Side-by-side
html/Callbacks/JSGantt/Elements/Tabs/Privileged
View file @
01ab4582
...
...
@@ -48,11 +48,17 @@
<%INIT>
my $request_path = $HTML::Mason::Commands::r->path_info;
if ( $request_path =~ qr{^/Search/Results.html} ) {
my $tabs = PageMenu;
require Encode;
$tabs->child( 'gantt' => title => loc('Gantt Chart'),
path => '/Search/JSGantt.html?Query=' . Encode::decode_utf8 $m->request_args->{'Query'} );
if ( $request_path =~ qr{^/Search/} ) {
if ( $request_path =~ qr{^/Search/JSGantt.html} && $DECODED_ARGS->{Ticket} ) {
PageMenu->child( 'gantt' => title => loc('Gantt Chart'), path => '/Search/JSGantt.html?Ticket=' . $DECODED_ARGS->{Ticket} );
}
else {
my $current_search = $session{"CurrentSearchHash"} || {};
my $query = $DECODED_ARGS->{'Query'} || $current_search->{'Query'};
if ( $query ) {
PageMenu->child( 'gantt' => title => loc('Gantt Chart'), path => '/Search/JSGantt.html?Query=' . $query );
}
}
}
</%INIT>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment