[Rt-commit] r5991 - rt/branches/3.6-RELEASE/html/Tools
ruz at bestpractical.com
ruz at bestpractical.com
Tue Sep 19 07:22:32 EDT 2006
Author: ruz
Date: Tue Sep 19 07:22:31 2006
New Revision: 5991
Modified:
rt/branches/3.6-RELEASE/html/Tools/MyDay.html
Log:
MyDay.html
* there is no need in $thispage argument
* merge two %INIT blocks
* drop unused code
Modified: rt/branches/3.6-RELEASE/html/Tools/MyDay.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/Tools/MyDay.html (original)
+++ rt/branches/3.6-RELEASE/html/Tools/MyDay.html Tue Sep 19 07:22:31 2006
@@ -43,15 +43,8 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<%args>
-$thispage => "MyDay.html"
-</%args>
-<%init>
-my $title = loc("What I did today");
-</%init>
-
<& /Elements/Header, Title => $title &>
-<& /Tools/Elements/Tabs, current_tab => "Tools/$thispage", Title => $title &>
+<& /Tools/Elements/Tabs, current_tab => "Tools/MyDay.html", Title => $title &>
(displaying new and open tickets for <%$session{'CurrentUser'}->Name%>)
<form method="post" action="MyDay.html">
<table width="100%" cellpadding="0" cellspacing="0">
@@ -78,8 +71,8 @@
<& /Elements/Submit, Label => "Record all updates" , Reset => 'Clear'&>
</form>
</html>
-
<%INIT>
+my $title = loc("What I did today");
my $i = 0;
@@ -89,11 +82,4 @@
$Tickets->LimitStatus ( VALUE => 'new');
$Tickets->OrderBy ( FIELD => 'Priority', ORDER => 'DESC');
-while (my $Ticket = $Tickets->Next()) {
- #Process updates
-
-
-}
-
</%INIT>
-
More information about the Rt-commit
mailing list