[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.11-8-g734fe0a
Shawn Moore
shawn at bestpractical.com
Tue Jun 2 17:28:26 EDT 2015
The branch, 4.2-trunk has been updated
via 734fe0ae28312911a17b6223c55bd5e0a2749823 (commit)
from 072a3135a6427807a1ec407f8f31c244ce7c0f64 (commit)
Summary of changes:
share/html/Ticket/Elements/ShowBasics | 4 ++++
share/html/Ticket/Elements/ShowSummary | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 734fe0ae28312911a17b6223c55bd5e0a2749823
Author: Christian Loos <cloos at netcologne.de>
Date: Wed May 20 15:20:39 2015 +0200
add more callbacks to modify ticket display
diff --git a/share/html/Ticket/Elements/ShowBasics b/share/html/Ticket/Elements/ShowBasics
index 546f581..501287b 100644
--- a/share/html/Ticket/Elements/ShowBasics
+++ b/share/html/Ticket/Elements/ShowBasics
@@ -74,10 +74,12 @@
<td class="value"><& ShowTime, minutes => $Ticket->TimeLeft &></td>
</tr>
% }
+% $m->callback( %ARGS, CallbackName => 'AfterTimeLeft', TicketObj => $Ticket );
<tr class="priority">
<td class="label"><&|/l&>Priority</&>:</td>
<td class="value"><& ShowPriority, Ticket => $Ticket &></td>
</tr>
+% $m->callback( %ARGS, CallbackName => 'AfterPriority', TicketObj => $Ticket );
%# This will check SeeQueue at the ticket role level, queue level, and global level
% if ($Ticket->CurrentUserHasRight('SeeQueue')) {
<tr class="queue">
@@ -85,12 +87,14 @@
<td class="value"><& ShowQueue, Ticket => $Ticket, QueueObj => $Ticket->QueueObj &></td>
</tr>
% }
+% $m->callback( %ARGS, CallbackName => 'AfterQueue', TicketObj => $Ticket );
<& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket, Grouping => 'Basics', Table => 0 &>
% if ($UngroupedCFs) {
<& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket, Grouping => '', Table => 0 &>
% }
% $m->callback( %ARGS, CallbackName => 'EndOfList', TicketObj => $Ticket );
</table>
+% $m->callback( %ARGS, CallbackName => 'AfterTable', TicketObj => $Ticket );
<%ARGS>
$Ticket => undef
$UngroupedCFs => 0
diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary
index 3feed22..36ddb20 100644
--- a/share/html/Ticket/Elements/ShowSummary
+++ b/share/html/Ticket/Elements/ShowSummary
@@ -53,7 +53,7 @@
(($can_modify || $can_modify_cf) ? (title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-basics',
&><& /Ticket/Elements/ShowBasics, Ticket => $Ticket &></&>
-
+% $m->callback( %ARGS, CallbackName => 'AfterBasics' );
<& /Elements/ShowCustomFieldCustomGroupings,
Object => $Ticket,
title_href => ($can_modify || $can_modify_cf) ? RT->Config->Get('WebPath')."/Ticket/Modify.html" : "",
@@ -63,6 +63,7 @@
(($can_modify || $can_modify_owner || $can_modify_people) ? (title_href => RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-people',
&><& /Ticket/Elements/ShowPeople, Ticket => $Ticket &></&>
+% $m->callback( %ARGS, CallbackName => 'AfterPeople' );
<& /Ticket/Elements/ShowAttachments, Ticket => $Ticket, Attachments => $Attachments &>
% $m->callback( %ARGS, CallbackName => 'AfterAttachments' );
<& /Ticket/Elements/ShowRequestor, Ticket => $Ticket &>
@@ -82,10 +83,12 @@
</td></tr></table>
</&>
% }
+% $m->callback( %ARGS, CallbackName => 'AfterReminders' );
<&| /Widgets/TitleBox, title => loc("Dates"),
($can_modify ? (title_href => RT->Config->Get('WebPath')."/Ticket/ModifyDates.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-dates',
&><& /Ticket/Elements/ShowDates, Ticket => $Ticket &></&>
+% $m->callback( %ARGS, CallbackName => 'AfterDates' );
% my (@extra);
% push @extra, titleright_raw => '<a href="'. RT->Config->Get('WebPath'). '/Ticket/Graphs/index.html?id='.$Ticket->id.'">'.loc('Graph').'</a>' unless RT->Config->Get('DisableGraphViz');
% $m->callback( %ARGS, CallbackName => 'LinksExtra', extra => \@extra );
-----------------------------------------------------------------------
More information about the rt-commit
mailing list