[Rt-commit] [rtir] 04/05: New ModifyQuery and AfterResults callbacks for homepage.
Kevin Falcone
falcone at bestpractical.com
Tue Jan 14 22:21:36 EST 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.0-trunk
in repository rtir.
commit bd18d4f860a48b04ec226b304bb613185a42fad6
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Jan 10 16:08:06 2014 -0500
New ModifyQuery and AfterResults callbacks for homepage.
The portlets on the RTIR homepage now have a little more flexibility
without requiring mason overlays.
---
html/RTIR/Elements/DueIncidents | 1 +
html/RTIR/Elements/NewReports | 1 +
html/RTIR/Elements/NobodyDueIncidents | 1 +
html/RTIR/Elements/UserDueIncidents | 1 +
4 files changed, 4 insertions(+)
diff --git a/html/RTIR/Elements/DueIncidents b/html/RTIR/Elements/DueIncidents
index 47ae9aa..3b25cc3 100644
--- a/html/RTIR/Elements/DueIncidents
+++ b/html/RTIR/Elements/DueIncidents
@@ -66,6 +66,7 @@ Description => loc('Due Incidents')
Order => $Order,
AllowSorting => 0,
&>
+% $m->callback( CallbackName => 'AfterResults' );
</&>
diff --git a/html/RTIR/Elements/NewReports b/html/RTIR/Elements/NewReports
index 678bacc..ae907a9 100644
--- a/html/RTIR/Elements/NewReports
+++ b/html/RTIR/Elements/NewReports
@@ -65,6 +65,7 @@
Order => $Order,
AllowSorting => 0,
&>
+% $m->callback( CallbackName => 'AfterResults' );
</&>
<%INIT>
diff --git a/html/RTIR/Elements/NobodyDueIncidents b/html/RTIR/Elements/NobodyDueIncidents
index 7908610..c48b239 100644
--- a/html/RTIR/Elements/NobodyDueIncidents
+++ b/html/RTIR/Elements/NobodyDueIncidents
@@ -49,6 +49,7 @@
<%INIT>
my $Title = loc( "Most due unowned incidents" );
$Query ||= RT::IR->ActiveQuery( Queue => 'Incidents', And => 'Owner.id = '. $RT::Nobody->id );
+$m->callback( CallbackName => 'ModifyQuery', Query => \$Query );
</%INIT>
<%ARGS>
$Query => undef
diff --git a/html/RTIR/Elements/UserDueIncidents b/html/RTIR/Elements/UserDueIncidents
index f5e70d7..761cd02 100644
--- a/html/RTIR/Elements/UserDueIncidents
+++ b/html/RTIR/Elements/UserDueIncidents
@@ -49,6 +49,7 @@
<%INIT>
my $Title = loc( "Most due incidents owned by [_1]", $Owner->Name );
$Query ||= RT::IR->ActiveQuery( Queue => 'Incidents', And => 'Owner.id = '. $Owner->id );
+$m->callback( CallbackName => 'ModifyQuery', Query => \$Query );
</%INIT>
<%ARGS>
$Owner => $session{'CurrentUser'}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list