[Rt-commit] r8676 - in rtir/branches/2.3-EXPERIMENTAL: .
html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap html/RTIR/NoAuth
sartak at bestpractical.com
sartak at bestpractical.com
Tue Aug 21 14:45:44 EDT 2007
Author: sartak
Date: Tue Aug 21 14:45:44 2007
New Revision: 8676
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm
rtir/branches/2.3-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css
Log:
r37888 at gorgoroth: sartak | 2007-08-21 14:43:56 -0400
Add column in bulk-reject for "does this have incidents?" and if so, hilight it
Modified: rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm (original)
+++ rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm Tue Aug 21 14:45:44 2007
@@ -182,7 +182,7 @@
RejectReports =>
q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',
'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>',
- __Requestors__, __OwnerName__, __CreatedRelative__, __DueRelative__},
+ __HasIncident__, __Requestors__, __OwnerName__, __CreatedRelative__, __DueRelative__},
BulkReply =>
q{'<b><a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#',
Modified: rtir/branches/2.3-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once Tue Aug 21 14:45:44 2007
@@ -42,6 +42,26 @@
return \$link;
},
};
+$COLUMN_MAP->{'HasIncident'} = {
+ title => 'Has Incident?',
+ value => sub {
+ my $t = shift;
+ my $yesno;
+
+ my $query = "Queue = 'Incidents' AND HasMember = " . $t->Id . " AND CF.{_RTIR_State} != 'rejected'";
+ my $incidents = new RT::Tickets($session{'CurrentUser'});
+ $incidents->FromSQL($query);
+
+ if ($incidents->Count > 0) {
+ $yesno = '<span class="yes">yes</span>';
+ }
+ else {
+ $yesno = '<span class="no">no</span>';
+ }
+
+ return \$yesno;
+ },
+};
</%INIT>
<%ARGS>
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css Tue Aug 21 14:45:44 2007
@@ -3,6 +3,10 @@
color: red;
}
+.collection-as-table > .yes {
+ background: yellow;
+}
+
ul.userlist {
margin:0;
padding: 0;
More information about the Rt-commit
mailing list