diff options
author | khoff <khoff> | 2004-03-10 02:37:23 +0000 |
---|---|---|
committer | khoff <khoff> | 2004-03-10 02:37:23 +0000 |
commit | 6f2e2ea05362732731d08bc2fdeb26946fa4d3bc (patch) | |
tree | 1d203f131ba01b08164ab2f1bf464bd0c79f9527 /httemplate/browse/router.cgi | |
parent | ecf4288cc6d98a4916128c5e45d515e0fbea09fd (diff) |
UI cleanup.
Diffstat (limited to 'httemplate/browse/router.cgi')
-rw-r--r-- | httemplate/browse/router.cgi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi index feee4ecaa..4eee96167 100644 --- a/httemplate/browse/router.cgi +++ b/httemplate/browse/router.cgi @@ -20,16 +20,20 @@ my $p2 = popurl(2); </TR> <% foreach my $router (sort {$a->routernum <=> $b->routernum} @router) { my @addr_block = $router->addr_block; + if (scalar(@addr_block) == 0) { + push @addr_block, ' '; + } %> <TR> - <TD ROWSPAN="<%=scalar(@addr_block)%>"> + <TD ROWSPAN="<%=scalar(@addr_block)+1%>"> <A HREF="<%=$p2%>edit/router.cgi?<%=$router->routernum%>"><%=$router->routername%></A> </TD> - <TD> - <% foreach my $block ( @addr_block ) { %> - <%=$block->NetAddr%></BR> - <% } %> - </TD> + </TR> + <% foreach my $block ( @addr_block ) { %> + <TR> + <TD><%=UNIVERSAL::isa($block, 'FS::addr_block') ? $block->NetAddr : ' '%></TD> + </TR> + <% } %> </TR> <% } %> </TABLE> |