[Rt-devel] [BUG][GUI] ShowPeople doesn't use ShowUserEntry

Ruslan U. Zakirov Ruslan.Zakirov at acronis.com
Fri Sep 24 11:20:53 EDT 2004


Jesse Vincent wrote:
[snip]

> The problem with using it there is that it's expected that the component
> will contain hyperlinks.

In next release of 'Expanded Adminning' patch set(first variant is 
member_of.patch) I use next component:

%if( $AsLink ) {
<A href="<% $Link |n%>">
% }
<%$User->Name%>
% if ($User->EmailAddress && $User->EmailAddress ne $User->Name) {
&lt;<%$User->EmailAddress%>&gt;
% }
%if( $AsLink ) {
</A>
% }
 
 

<%ARGS>
$User => undef
$AsLink => 0
$LinkFormat => '/Admin/Users/Modify.html?id=%d'
</%ARGS>
<%INIT>
my $Link = '';
if( $AsLink ) {
         $Link = $RT::WebBaseURL . sprintf( "$LinkFormat", $User->Id );
}
</%INIT>

______________________________________________________________________

Also I'm going to extend number of params with next variants:
	'EmailFormatCompliant'
	'Long' - as much info as possible
	 Long+EmailFromatCompliant
	


More information about the Rt-devel mailing list