Changeset 821
- Timestamp:
- 03/16/16 13:33:11 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r820 r821 349 349 path => @templatepath); 350 350 # alternate layout; put master blocks on the front summary page instead of "out"/"down" a 351 # layer in the browse tree 352 my $vrfinfo = HTML::Template->new(filename => "showvrf.tmpl", path => @templatepath); 351 # layer in the browse tree. Leaving the manual include of showvrf.tmpl for reference; not 352 # sure why setting webpath here didn't seem to make it to the output. 353 # my $vrfinfo = HTML::Template->new(filename => "showvrf.tmpl", path => @templatepath); 353 354 foreach my $vrf (@$vrflist) { 354 355 my $masterlist = listSummary($ip_dbh, $vrf->{vrf}); 355 $vrfinfo->param(vrf => $vrf->{vrf}); 356 $vrfinfo->param(masterlist => $masterlist); 357 $vrfinfo->param(addmaster => ($IPDBacl{$authuser} =~ /s/) ); 358 $vrfinfo->param(maydel => ($IPDBacl{$authuser} =~ /s/) ); 359 $vrfinfo->param(sub => 1); 360 $vrf->{vrfinfo} = $vrfinfo->output; 356 $vrf->{masterlist} = $masterlist; 357 $vrf->{addmaster} = ($IPDBacl{$authuser} =~ /s/); 358 $vrf->{maydel} = ($IPDBacl{$authuser} =~ /s/); 359 $vrf->{sub} = 1; 360 # $vrfinfo->param(vrf => $vrf->{vrf}); 361 # $vrfinfo->param(masterlist => $masterlist); 362 # $vrfinfo->param(addmaster => ($IPDBacl{$authuser} =~ /s/) ); 363 # $vrfinfo->param(maydel => ($IPDBacl{$authuser} =~ /s/) ); 364 # $vrfinfo->param(sub => 1); 365 # $vrfinfo->param(webpath => $IPDB::webpath); 366 # $vrf->{vrfinfo} = $vrfinfo->output; 361 367 } 362 368 } -
trunk/templates/index2.tmpl
r818 r821 9 9 </tr> 10 10 <tr><td colspan="3"> 11 <TMPL_ VAR NAME=vrfinfo>11 <TMPL_INCLUDE showvrf.tmpl> 12 12 </td></tr> 13 13 <tr><td colspan=3><br><hr class="w90"></td></tr>
Note:
See TracChangeset
for help on using the changeset viewer.