diff options
author | Mark Wells <mark@freeside.biz> | 2015-02-24 22:24:43 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-02-24 22:24:43 -0800 |
commit | 18052ce1e0699474a6ac133dacf314e9c10149b7 (patch) | |
tree | 114e5235d3a5b5beb4a427ede4c9098e0e589d45 /rt | |
parent | 1bb418afbe13a1aa90cfe21da082091e091a2685 (diff) |
add a link to create new dashboards, #30905
Diffstat (limited to 'rt')
-rwxr-xr-x | rt/share/html/Elements/Tabs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/share/html/Elements/Tabs b/rt/share/html/Elements/Tabs index 6eae81d39..f769a8006 100755 --- a/rt/share/html/Elements/Tabs +++ b/rt/share/html/Elements/Tabs @@ -516,10 +516,15 @@ my $build_main_nav = sub { if $obj->CurrentUserCanSubscribe; $tabs->child( show => title => loc('Show'), path => "/Dashboards/" . $obj->id . "/" . $obj->Name) } + } else { + my $tabs = PageMenu(); + if ( $dashboard->CurrentUserCanCreateAny ) { + # FREESIDE: provide a way to create dashboards + $tabs->child('dashboard_create' => title => loc('New Dashboard'), path => "/Dashboards/Modify.html?Create=1"); + } } } - if ( $request_path =~ m{^/Ticket/} ) { if ( ( $DECODED_ARGS->{'id'} || '' ) =~ /^(\d+)$/ ) { my $id = $1; |