summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-02-24 22:23:56 -0800
committerMark Wells <mark@freeside.biz>2015-02-24 22:24:10 -0800
commitbfb8e58521f177b8a2bec22706dff7dd8b114208 (patch)
treecb13656f854b5cb9359c50df3f5f6e9561048d0a /rt
parentc901bfbd9114865ce0c6fd76c6378e534c3616d5 (diff)
add a link to create new dashboards, #30905
Diffstat (limited to 'rt')
-rwxr-xr-xrt/share/html/Elements/Tabs7
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/share/html/Elements/Tabs b/rt/share/html/Elements/Tabs
index 6eae81d..f769a80 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;