better looking verbose user strings with less visual noise
[freeside.git] / rt / share / html / Elements / ShowUserVerbose
index 82d65b0..9b61ea7 100644 (file)
 %# 
 %# END BPS TAGGED BLOCK }}}
 %# Released under the terms of version 2 of the GNU Public License
-<%$Address->format%>\
+% if ( $Address->phrase || $Address->comment ) {
+<% sprintf q{%s <%s> %s}, map $Address->$_, qw( phrase address comment ) %>
+% } else {
+<% $Address->address %>
+% }
 <%INIT>
 my ($phrase, $address, $comment);