Changeset 821 for trunk/cgi-bin


Ignore:
Timestamp:
03/16/16 13:33:11 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix bug generating the links in the index page with integrated master blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r820 r821  
    349349        path => @templatepath);
    350350    # 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);
    353354    foreach my $vrf (@$vrflist) {
    354355      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;
    361367    }
    362368  }
Note: See TracChangeset for help on using the changeset viewer.