[Rt-commit] [svn] r1091 - rt/branches/rt-3.1/html/Ticket/Elements

leira at pallas.eruditorum.org leira at pallas.eruditorum.org
Wed Jun 16 18:16:35 EDT 2004


Author: leira
Date: Wed Jun 16 18:16:35 2004
New Revision: 1091

Added:
   rt/branches/rt-3.1/html/Ticket/Elements/ShowGroupMembers
   rt/branches/rt-3.1/html/Ticket/Elements/ShowUserEntry
Modified:
   rt/branches/rt-3.1/html/Ticket/Elements/ShowPeople
Log:
RT-Ticket: 4121
RT-Status: resolved
RT-Update: comment

The ShowPeople component now displays each user on its own line, including the username, and the email address if it exists and isn't the same as the username.



Added: rt/branches/rt-3.1/html/Ticket/Elements/ShowGroupMembers
==============================================================================
--- (empty file)
+++ rt/branches/rt-3.1/html/Ticket/Elements/ShowGroupMembers	Wed Jun 16 18:16:35 2004
@@ -0,0 +1,38 @@
+%# BEGIN LICENSE BLOCK
+%# 
+%# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
+%# 
+%# (Except where explictly superceded by other copyright notices)
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# Unless otherwise specified, all modifications, corrections or
+%# extensions to this work which alter its source code become the
+%# property of Best Practical Solutions, LLC when submitted for
+%# inclusion in the work.
+%# 
+%# 
+%# END LICENSE BLOCK
+%# Released under the terms of version 2 of the GNU Public License
+
+% my $UserMembers = $Group->UserMembersObj;
+% while (my $member = $UserMembers->Next()) {
+<& ShowUserEntry, User => $member &>
+% }
+% my $GroupMembers = $Group->MembersObj;
+% $GroupMembers->LimitToGroups();
+% while (my $member = $GroupMembers->Next()) {
+<&|/l&>Group</&>: <%$member->MemberObj->Object->Name%><br>
+% }
+
+<%ARGS>
+$Group => undef
+</%ARGS>
\ No newline at end of file

Modified: rt/branches/rt-3.1/html/Ticket/Elements/ShowPeople
==============================================================================
--- rt/branches/rt-3.1/html/Ticket/Elements/ShowPeople	(original)
+++ rt/branches/rt-3.1/html/Ticket/Elements/ShowPeople	Wed Jun 16 18:16:35 2004
@@ -28,18 +28,17 @@
   </tr>
   <tr>
     <td class="labeltop"><&|/l&>Requestors</&>:</td>
-    <td class="value"><%$Ticket->RequestorAddresses%></td>
+    <td class="value"><& ShowGroupMembers, Group => $Ticket->Requestors &></td>
   </tr>
   <tr>
     <td class="labeltop"><&|/l&>Cc</&>:</td>
-    <td class="value"><%$Ticket->CcAddresses%></td>
+    <td class="value"><& ShowGroupMembers, Group => $Ticket->Cc &></td>
   </tr>
   <tr>
     <td class="labeltop"><&|/l&>AdminCc</&>:</td>
-    <td class="value"><%$Ticket->AdminCcAddresses%></td>
+    <td class="value"><& ShowGroupMembers, Group => $Ticket->AdminCc &></td>
   </tr>
 </table>
 <%ARGS>
 $Ticket => undef
 </%ARGS>
-

Added: rt/branches/rt-3.1/html/Ticket/Elements/ShowUserEntry
==============================================================================
--- (empty file)
+++ rt/branches/rt-3.1/html/Ticket/Elements/ShowUserEntry	Wed Jun 16 18:16:35 2004
@@ -0,0 +1,33 @@
+%# BEGIN LICENSE BLOCK
+%# 
+%# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
+%# 
+%# (Except where explictly superceded by other copyright notices)
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# Unless otherwise specified, all modifications, corrections or
+%# extensions to this work which alter its source code become the
+%# property of Best Practical Solutions, LLC when submitted for
+%# inclusion in the work.
+%# 
+%# 
+%# END LICENSE BLOCK
+%# Released under the terms of version 2 of the GNU Public License
+
+<%$User->Name%>
+% if ($User->EmailAddress && $User->EmailAddress ne $User->Name) {
+&lt;<%$User->EmailAddress%>&gt; <br>
+% }
+
+<%ARGS>
+$User => undef
+</%ARGS>
\ No newline at end of file


More information about the Rt-commit mailing list