Changeset 818 for trunk/cgi-bin/main.cgi
- Timestamp:
- 03/10/16 18:02:41 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r816 r818 319 319 sub showSummary { 320 320 my $vrflist = listVRF($ip_dbh); 321 322 if ($IPDB::masterswithvrfs == 2) { 323 $page = HTML::Template->new(filename => "index2.tmpl", loop_context_vars => 1, global_vars => 1, 324 path => @templatepath); 325 # alternate layout; put master blocks on the front summary page instead of "out"/"down" a 326 # layer in the browse tree 327 my $vrfinfo = HTML::Template->new(filename => "showvrf.tmpl", path => @templatepath); 328 foreach my $vrf (@$vrflist) { 329 my $masterlist = listSummary($ip_dbh, $vrf->{vrf}); 330 $vrfinfo->param(vrf => $vrf->{vrf}); 331 $vrfinfo->param(masterlist => $masterlist); 332 $vrfinfo->param(addmaster => ($IPDBacl{$authuser} =~ /s/) ); 333 $vrfinfo->param(maydel => ($IPDBacl{$authuser} =~ /s/) ); 334 $vrfinfo->param(sub => 1); 335 $vrf->{vrfinfo} = $vrfinfo->output; 336 } 337 } 338 321 339 $page->param(vrflist => $vrflist); 322 340 323 341 # Only systems/network should be allowed to add VRFs - or maybe higher? 324 342 $page->param(addvrf => ($IPDBacl{$authuser} =~ /s/) ); 343 325 344 } # showSummary 326 345 … … 338 357 $utilbar->param(breadcrumb => \@rcrumbs); 339 358 359 $page->param(maydel => ($IPDBacl{$authuser} =~ /s/) ); 340 360 $page->param(addmaster => ($IPDBacl{$authuser} =~ /s/) ); 341 361 } # showVRF
Note:
See TracChangeset
for help on using the changeset viewer.