[Rt-commit] r4369 - in RT-Extension-ActivityReports: .
html/Reports/Activity/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Tue Jan 3 17:14:54 EST 2006
Author: jesse
Date: Tue Jan 3 17:14:53 2006
New Revision: 4369
Modified:
RT-Extension-ActivityReports/ (props changed)
RT-Extension-ActivityReports/html/Reports/Activity/Elements/LimitReport
RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter
RT-Extension-ActivityReports/html/Reports/Activity/index.html
Log:
r20452 at truegrounds: jesse | 2005-12-14 21:30:12 +0100
* minor stylistic cleanups
Modified: RT-Extension-ActivityReports/html/Reports/Activity/Elements/LimitReport
==============================================================================
--- RT-Extension-ActivityReports/html/Reports/Activity/Elements/LimitReport (original)
+++ RT-Extension-ActivityReports/html/Reports/Activity/Elements/LimitReport Tue Jan 3 17:14:53 2006
@@ -1,6 +1,6 @@
<form action="index.html" method="POST" enctype="multipart/form-data">
Query:
-<textarea name="query"><% $query %></textarea><br />
+<textarea name="query" rows="5" cols="80"><% $query %></textarea><br />
Report type: <select name="type">
<option value="ActivityDetail" <% $ARGS{path} =~ /ActivityDetail/ ? 'selected' : '' %>>Activity detail</option>
@@ -20,4 +20,4 @@
$query => undef
</%args>
<%init>
-</%init>
\ No newline at end of file
+</%init>
Modified: RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter
==============================================================================
--- RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter (original)
+++ RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter Tue Jan 3 17:14:53 2006
@@ -1,4 +1,5 @@
<& LimitReport, %ARGS &>
+% if ($show_print_link) {
<div align="right">
% my %printable_args = %ARGS;
% delete $printable_args{$_} for (qw/path title mode/);
@@ -6,4 +7,7 @@
% my $url = $ARGS{'path'} .'?'. join(';', map { $_."=".$printable_args{$_} } keys %printable_args);
<a href="<%$RT::WebPath|n%>/<%$url|n%>"><&|/l&>Printable version</&></a>
</div>
-
+% }
+<%args>
+$show_print_link => 1
+</%args>
Modified: RT-Extension-ActivityReports/html/Reports/Activity/index.html
==============================================================================
--- RT-Extension-ActivityReports/html/Reports/Activity/index.html (original)
+++ RT-Extension-ActivityReports/html/Reports/Activity/index.html Tue Jan 3 17:14:53 2006
@@ -1,4 +1,6 @@
-<&| Elements/Wrapper, %ARGS, Title => loc("Activity detail") &>
+<&| Elements/Wrapper, %ARGS, title => loc("Activity reports"), show_print_link => 0 &>
+
+
</&>
<%args>
@@ -8,6 +10,19 @@
$query => undef
</%args>
<%init>
+
+unless ($start) {
+ my $then = RT::Date->new($session{'CurrentUser'});
+ $then->Set(Format => 'Unix', Value => time - (86400*7));
+ $ARGS{start} = substr($then->ISO,0,10);
+}
+
+unless ($end) {
+ my $now = RT::Date->new($session{'CurrentUser'});
+ $now->SetToNow();
+ $ARGS{end} = substr($now->ISO,0,10);
+}
+
if ($type) {
$m->redirect($type . ".html?" . $m->comp('/Elements/QueryString', query => $query, start => $start, end => $end));
}
More information about the Rt-commit
mailing list