[freeside-commits] branch FREESIDE_3_BRANCH updated. 18052ce1e0699474a6ac133dacf314e9c10149b7
Mark Wells
mark at 420.am
Tue Feb 24 22:24:51 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 18052ce1e0699474a6ac133dacf314e9c10149b7 (commit)
from 1bb418afbe13a1aa90cfe21da082091e091a2685 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 18052ce1e0699474a6ac133dacf314e9c10149b7
Author: Mark Wells <mark at freeside.biz>
Date: Tue Feb 24 22:24:43 2015 -0800
add a link to create new dashboards, #30905
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;
-----------------------------------------------------------------------
Summary of changes:
rt/share/html/Elements/Tabs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list