summaryrefslogtreecommitdiff
path: root/httemplate/search/sqlradius.cgi
diff options
context:
space:
mode:
authorivan <ivan>2004-10-06 13:27:49 +0000
committerivan <ivan>2004-10-06 13:27:49 +0000
commiteb4cf5563939a08eba1a10d8c2a8f52205f6535b (patch)
tree9f44facbdff3d74f5f7cc2b23a9909e60bd8d518 /httemplate/search/sqlradius.cgi
parent4a881cc149f6892da35f85b767a1e806f237a05f (diff)
small formatting updates to RADIUS report
Diffstat (limited to 'httemplate/search/sqlradius.cgi')
-rw-r--r--httemplate/search/sqlradius.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/search/sqlradius.cgi b/httemplate/search/sqlradius.cgi
index 3c5046bea..9cc5958ee 100644
--- a/httemplate/search/sqlradius.cgi
+++ b/httemplate/search/sqlradius.cgi
@@ -123,9 +123,9 @@
my $time_format = sub {
my $time = shift;
- $time > 0
- ? time2str('%T%P&nbsp;%a&nbsp;%b&nbsp;%o&nbsp;%Y', $time )
- : '&nbsp;';
+ return '&nbsp;' if $time == 0;
+ my $pretty = time2str('%T%P %a&nbsp;%b&nbsp;%o&nbsp;%Y', $time );
+ $pretty =~ s/ (\d)(st|dn|rd|th)/&nbsp;$1$2/;
};
my $duration_format = sub {
@@ -223,7 +223,7 @@
<% foreach my $field ( keys %fields ) { %>
<TH>
<%= $fields{$field}->{name} %><BR>
- <FONT SIZE=-1><%= $fields{$field}->{attrib} %></FONT>
+ <FONT SIZE=-2><%= $fields{$field}->{attrib} %></FONT>
</TH>
<% } %>
</TR>