[freeside-commits] branch master updated. bfb8e58521f177b8a2bec22706dff7dd8b114208
Mark Wells
mark at 420.am
Tue Feb 24 22:24:51 PST 2015
The branch, master has been updated
via bfb8e58521f177b8a2bec22706dff7dd8b114208 (commit)
from c901bfbd9114865ce0c6fd76c6378e534c3616d5 (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 bfb8e58521f177b8a2bec22706dff7dd8b114208
Author: Mark Wells <mark at freeside.biz>
Date: Tue Feb 24 22:23:56 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