summaryrefslogtreecommitdiff
path: root/rt/html/Reports/Activity/Elements/Tabs
diff options
context:
space:
mode:
authorivan <ivan>2007-06-20 22:28:28 +0000
committerivan <ivan>2007-06-20 22:28:28 +0000
commitf5af4fcceb8a36c3d0885dfa197798a77de64727 (patch)
tree4a1d6ec0be2a409d83dac63a3001728d3c2306aa /rt/html/Reports/Activity/Elements/Tabs
parent732703b42a01b98fe6e3a8d032e173d69b48c4e8 (diff)
integrate RTx::Statistics package, part of merging spiritone RT changes (#1661)
Diffstat (limited to 'rt/html/Reports/Activity/Elements/Tabs')
-rw-r--r--rt/html/Reports/Activity/Elements/Tabs52
1 files changed, 52 insertions, 0 deletions
diff --git a/rt/html/Reports/Activity/Elements/Tabs b/rt/html/Reports/Activity/Elements/Tabs
new file mode 100644
index 000000000..a9498209e
--- /dev/null
+++ b/rt/html/Reports/Activity/Elements/Tabs
@@ -0,0 +1,52 @@
+<& /Elements/Tabs,
+ tabs => $tabs,
+ subtabs => $subtabs,
+ current_toptab => 'Tools/Offline.html',
+ current_tab => 'Reports/Activity/index.html'.$args,
+ Title => $Title &>
+
+<%INIT>
+my $subtabs = {};
+
+my $top = $m->caller_args(-1);
+my $args = "?" . $m->comp( '/Elements/QueryString',
+ query => $top->{query},
+ start => $top->{start},
+ end => $top->{end});
+if ($m->caller_args(-1)->{'query'}) {
+ $current_subtab .= $args;
+ $subtabs = {
+ a => { title => 'Activity detail',
+ path => 'Reports/Activity/ActivityDetail.html'.$args,
+ },
+ b => { title => 'Activity summary',
+ path => 'Reports/Activity/ActivitySummary.html'.$args,
+ },
+ c => { title => 'Resolution comments',
+ path => 'Reports/Activity/ResolutionComments.html'.$args,
+ },
+ d => { title => 'Resolution statistics',
+ path => 'Reports/Activity/ResolutionStatistics.html'.$args,
+ },
+ };
+}
+
+my $tabs = {
+ a => { title => loc('Offline'),
+ path => 'Tools/Offline.html',
+ },
+ r => { title => loc('Reports'),
+ path => 'Reports/Activity/index.html'.$args,
+ subtabs => $subtabs,
+ current_subtab => $current_subtab,
+ }
+ };
+
+</%INIT>
+
+
+<%ARGS>
+$current_tab => undef
+$current_subtab => undef
+$Title => undef
+</%ARGS>