[Rt-commit] r4209 - in rtir/branches/1.9-EXPERIMENTAL: . html/RTIR

ruz at bestpractical.com ruz at bestpractical.com
Thu Dec 1 15:20:44 EST 2005


Author: ruz
Date: Thu Dec  1 15:20:44 2005
New Revision: 4209

Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/index.html
Log:
 r382 at cubic-pc:  cubic | 2005-12-01 23:23:17 +0300
  r378 at cubic-pc:  cubic | 2005-11-24 15:31:32 +0300
  * switch home page to MyRT component
 


Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/index.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/index.html	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/index.html	Thu Dec  1 15:20:44 2005
@@ -27,31 +27,17 @@
     Title => "RT for Incident Response", 
     current_toptab => 'RTIR/index.html' &>
 
-<TABLE BORDER=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=70%>
-
-<& /RTIR/Elements/NewReports &>
-
-</TD><TD VALIGN=TOP>
-
-<& /Widgets/TitleBoxStart, title=>loc("Refresh") &>
-
-<form method=get action="index.html">
-<& /RTIR/Elements/Refresh, Name => 'HomeRefreshInterval', Default => $session {'home_refresh_interval'} &>
-<input type=submit value="<&|/l&>Go!</&>">
-</form>
-
-<& /Widgets/TitleBoxEnd &>
-
-</TD></TR><TR VALIGN=TOP><TD colspan=2 WIDTH=100%>
-
-<& /RTIR/Elements/UserDueIncidents &>
-
-<BR>
-
-<& /RTIR/Elements/DueIncidents &>
-
-</TD></TR></TABLE>
-
+<& /Elements/ListActions, actions => \@results &>
+<& /Elements/MyRT, Portlets => {
+    body => [
+        { type => 'component', name => '/RTIR/Elements/NewReports' },
+        { type => 'component', name => '/RTIR/Elements/UserDueIncidents' },
+        { type => 'component', name => '/RTIR/Elements/DueIncidents' },
+    ],
+    summary => [
+        { type => 'component', name => '/Elements/RefreshHomepage' },
+    ],
+} &>
 <%INIT>
 if ( $ARGS{'q'} ) {
     my $query = $ARGS{'q'};
@@ -97,8 +83,12 @@
     return;
 }
 
-if ($ARGS{'HomeRefreshInterval'}) {
+if ( $ARGS{'HomeRefreshInterval'} ) {
     $session{'home_refresh_interval'} = $ARGS{'HomeRefreshInterval'};
+    push @results, loc( 'Updated refresh interval.');
 }
 
 </%INIT>
+<%ARGS>
+ at results => ()
+</%ARGS>


More information about the Rt-commit mailing list