[Rt-commit] r4585 - in rtir/branches/1.9-EXPERIMENTAL: html/RTIR
html/RTIR/Prefs
jesse at bestpractical.com
jesse at bestpractical.com
Sun Feb 26 23:15:10 EST 2006
Author: jesse
Date: Sun Feb 26 23:15:10 2006
New Revision: 4585
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Prefs/Home.html
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/index.html
Log:
r24759 at truegrounds: jesse | 2006-02-26 21:24:40 -0500
Fix for D.9.1.1. RTIR MUST support customising front page and all main ticket screens to be able to turn off different sections
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Prefs/Home.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Prefs/Home.html (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Prefs/Home.html Sun Feb 26 23:15:10 2006
@@ -29,8 +29,6 @@
my @items;
foreach my $comp ( grep !$seen{$_}++, (RT->Config->Get('RTIR_HomepageComponents')) ) {
- use Data::Dumper;
- #$RT::Logger->error( Dumper($comp, $m->fetch_comp($comp)) );
my $desc;
my $obj = $m->fetch_comp($comp);
$desc = $obj->attr_if_exists('Description') if $obj;
@@ -58,8 +56,6 @@
}
}
-use Data::Dumper;
-$RT::Logger->error( Dumper( \@items ) );
my @boxes;
foreach my $pane ( sort keys %$portlets ) {
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 Sun Feb 26 23:15:10 2006
@@ -23,7 +23,7 @@
%#
%# END LICENSE BLOCK
<& /RTIR/Elements/Header, Title => "RTIR at a glance", Refresh => $session{'home_refresh_interval'} &>
-<& /RTIR/Elements/Tabs, Title => "RT for Incident Response", current_toptab => 'RTIR/index.html' &>
+<& /RTIR/Elements/Tabs, Title => "RT for Incident Response", actions => $actions, current_toptab => 'RTIR/index.html' &>
<& /Elements/ListActions, actions => \@results &>
<& /Elements/MyRT, Portlets => $portlets &>
@@ -88,6 +88,16 @@
push @results, loc( 'Updated refresh interval.');
}
+my $actions;
+if ($session{'CurrentUser'}->HasRight(Right => 'ModifySelf', Object => $RT::System)) {
+ $actions = {
+ A => { title => loc('Edit'),
+ path => 'RTIR/Prefs/Home.html',
+ },
+ };
+}
+
+
</%INIT>
<%ARGS>
@results => ()
More information about the Rt-commit
mailing list