diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /rt/share/html/Elements/DashboardTabs | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'rt/share/html/Elements/DashboardTabs')
-rw-r--r-- | rt/share/html/Elements/DashboardTabs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/rt/share/html/Elements/DashboardTabs b/rt/share/html/Elements/DashboardTabs deleted file mode 100644 index f9493d5fe..000000000 --- a/rt/share/html/Elements/DashboardTabs +++ /dev/null @@ -1,52 +0,0 @@ -<%args> -$CurrentDashboard => undef -</%args> -<%init> -my @dashboards = $m->comp("/Dashboards/Elements/ListOfDashboards"); -my $limit = 7; - -$m->callback( - Dashboards => \@dashboards, - Limit => \$limit, - CallbackName => 'MassageDashboards', -); - -my $more = 0; -if (@dashboards > $limit) { - $more = 1; - splice @dashboards, $limit; -} - -# always include the current dashboard, even if it's not in the initial list -push @dashboards, $CurrentDashboard - if $CurrentDashboard - && 0 == grep { $_->Id == $CurrentDashboard->Id } @dashboards; - -my $position = 0; - -my $tabs = { - map { - ++$position; - my $key = sprintf 'D-%03d', $position; - $key => { - title => $_->Name, - path => 'Dashboards/' . $_->Id . '/' . $_->Name, - } - } - @dashboards -}; - -$tabs->{"A"} = { - title => loc('Home'), - path => 'index.html', -}; - -if ($more) { - $tabs->{"D-more"} = { - title => loc('More'), - path => 'Dashboards/index.html', - } -} - -return $tabs; -</%init> |