Changeset 495

Show
Ignore:
Timestamp:
09/19/04 01:22:43 (4 years ago)
Author:
kake
Message:

A start at no-robot tags.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r490 r495  
    1515use vars qw( $VERSION ); 
    1616 
    17 $VERSION = '0.40'; 
     17$VERSION = '0.41'; 
    1818 
    1919=head1 NAME 
     
    331331    $diff_vars{not_deletable} = 1; 
    332332    $diff_vars{not_editable} = 1; 
     333    $diff_vars{deter_robots} = 1; 
    333334    return %diff_vars if $args{return_tt_vars}; 
    334335    my $output = $self->process_template( 
     
    523524                    not_deletable => 1, 
    524525                    not_editable  => 1, 
     526                    deter_robots  => 1, 
    525527                    history       => \@history ); 
    526528    return %tt_vars if $args{return_tt_vars}; 
     
    658660                    not_editable  => 1, 
    659661                    not_deletable => 1, 
     662                    deter_robots  => 1, 
    660663                  ); 
    661664    $tt_vars{delete_version} = $args{version} || ""; 
  • trunk/templates/header.tt

    r492 r495  
    3030    <link rel="alternate" type="application/rss+xml" title="RSS feed for this page" href="[% rss_link %]"> 
    3131  [% END %] 
     32  [% IF deter_robots %] 
     33    <meta robots="noindex" /> 
     34  [% END %] 
    3235</head> 
    3336<body> 
  • trunk/wiki.cgi

    r490 r495  
    55 
    66use vars qw( $VERSION ); 
    7 $VERSION = '0.40'; 
     7$VERSION = '0.41'; 
    88 
    99use CGI qw/:standard/; 
     
    249249                             metadata => $node_data{metadata} ); 
    250250 
    251     my %tt_vars = ( content    => $q->escapeHTML($content), 
    252                     checksum   => $q->escapeHTML($checksum), 
     251    my %tt_vars = ( content         => $q->escapeHTML($content), 
     252                    checksum        => $q->escapeHTML($checksum), 
    253253                    %metadata_vars, 
    254                     username   => $username, 
    255                     edit_type  => $edit_type, 
     254                    username        => $username, 
     255                    edit_type       => $edit_type, 
     256                    deter_robots    => 1, 
    256257    ); 
    257258 
     
    323324                    num_results   => scalar @results, 
    324325                    not_deletable => 1, 
     326                    deter_robots  => 1, 
    325327                    not_editable  => 1 ); 
    326328    process_template("backlink_results.tt", $node, \%tt_vars); 
     
    346348                      { not_editable  => 1, 
    347349                        not_deletable => 1, 
     350                        deter_robots  => 1, 
    348351                        wanted        => \@wanted } ); 
    349352}