[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-465-gb1d08b6
Thomas Sibley
trs at bestpractical.com
Tue Aug 17 23:28:22 EDT 2010
The branch, 3.9-trunk has been updated
via b1d08b61fe36c8d9e82a1800f1e1095823ec0419 (commit)
via c0c8dc20d530b51ae937be0ec363d91f07418771 (commit)
from 371c58905d83be52c62cb20ad16f5a32196ef74c (commit)
Summary of changes:
share/html/Ticket/Elements/ShowRequestor | 10 ++++++++++
share/html/Ticket/Elements/ShowRequestorExtraInfo | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit c0c8dc20d530b51ae937be0ec363d91f07418771
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Aug 17 23:30:00 2010 -0400
Remove a leading space on the extra info fields
diff --git a/share/html/Ticket/Elements/ShowRequestorExtraInfo b/share/html/Ticket/Elements/ShowRequestorExtraInfo
index fb8d841..4916937 100644
--- a/share/html/Ticket/Elements/ShowRequestorExtraInfo
+++ b/share/html/Ticket/Elements/ShowRequestorExtraInfo
@@ -54,7 +54,7 @@
% }
% $title = $m->comp('/Elements/ScrubHTML', Content => $title);
<div class="more-about-requestor-extra-field <% $fetch_columnmap->($attr,'attribute',[$attr]) %>" >
-<span class="label"> <% $title %></span>
+<span class="label"><% $title %></span>
% my @out;
% foreach my $subcol ( @{ $column->{output} } ) {
% my ($col) = ($subcol =~ /^__(.*?)__$/);
commit b1d08b61fe36c8d9e82a1800f1e1095823ec0419
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Aug 17 23:30:13 2010 -0400
Make showing requestor comments, tickets, and groups configurable
diff --git a/share/html/Ticket/Elements/ShowRequestor b/share/html/Ticket/Elements/ShowRequestor
index 75acf22..b3d4ba4 100755
--- a/share/html/Ticket/Elements/ShowRequestor
+++ b/share/html/Ticket/Elements/ShowRequestor
@@ -64,19 +64,25 @@ while ( my $requestor = $people->Next ) {
% $m->callback( requestor => $requestor, %ARGS, CallbackName => 'AboutThisUser' );
<& ShowRequestorExtraInfo, Requestor => $requestor &>
+% if ( $ShowComments ) {
<div class="comments-about-user">
<span class="label"><&|/l&>Comments about this user</&>:</span>
<span class="value"><% ($requestor->Comments || loc("No comment entered about this user")) %></span>
</div>
+% }
+% if ( $ShowTickets ) {
<div class="more-about-requestor" id="more-about-requestor-<%$requestor->Id%>">
<& $TicketTemplate, Requestor => $requestor &>
</div>
+% }
+% if ( $ShowGroups ) {
<div class="more-about-user-groups">
<span class="label"><&|/l&>Groups this user belongs to</&>:</span>
<span class="value"><& /Elements/ShowMemberships, UserObj => $requestor &></span>
</div>
+% }
</&>
@@ -102,4 +108,8 @@ $TicketsLinkTemplate = "ShowRequestorTicketsActive"
$Ticket=>undef
$TicketTemplate=>undef
$TicketsLinkTemplate => undef
+$ShowComments => 1
+$ShowTickets => 1
+$ShowGroups => 1
+$Title => 'More about [_1]'
</%ARGS>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list