summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-05-02 20:30:18 (GMT)
committerFred Drake <fdrake@acm.org>2003-05-02 20:30:18 (GMT)
commit05404c3d7cade736860c3c61921abc2b89298fb1 (patch)
tree672261a67eec23230a5df5b417aea1a4f2ed61dc /Doc/perl
parent4f45011af299b8861068f029a578ed7830cfadc8 (diff)
downloadcpython-05404c3d7cade736860c3c61921abc2b89298fb1.zip
cpython-05404c3d7cade736860c3c61921abc2b89298fb1.tar.gz
cpython-05404c3d7cade736860c3c61921abc2b89298fb1.tar.bz2
add link types for the remaining links in the navigation panels
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/l2hinit.perl16
1 files changed, 9 insertions, 7 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl
index b5caf6b..6e4b0cb 100644
--- a/Doc/perl/l2hinit.perl
+++ b/Doc/perl/l2hinit.perl
@@ -141,23 +141,25 @@ sub get_my_icon($) {
. " height='32' alt='$text' width='32'>";
}
-sub use_my_icon($) {
- my $s = $_[0];
+sub use_my_icon($$) {
+ my($s,$rel) = @_;
if ($s =~ /\<tex2html_([a-z_]+)_visible_mark\>/) {
my $r = get_my_icon($1);
$s =~ s/\<tex2html_[a-z_]+_visible_mark\>/$r/;
}
+ $s =~ s/<[aA] /<a rel="$rel" /;
return $s;
}
sub make_nav_panel() {
my $s;
my $BLANK_ICON = get_my_icon('blank');
- $NEXT = $NEXT_TITLE ? use_my_icon("$NEXT") : $BLANK_ICON;
- $UP = $UP_TITLE ? use_my_icon("$UP") : $BLANK_ICON;
- $PREVIOUS = $PREVIOUS_TITLE ? use_my_icon("$PREVIOUS") : $BLANK_ICON;
- $CONTENTS = use_my_icon("$CONTENTS");
- $INDEX = $INDEX ? use_my_icon("$INDEX") : $BLANK_ICON;
+ $NEXT = $NEXT_TITLE ? use_my_icon("$NEXT", 'next') : $BLANK_ICON;
+ $UP = $UP_TITLE ? use_my_icon("$UP", 'parent') : $BLANK_ICON;
+ $PREVIOUS = ($PREVIOUS_TITLE
+ ? use_my_icon("$PREVIOUS", 'prev') : $BLANK_ICON);
+ $CONTENTS = use_my_icon("$CONTENTS", 'contents');
+ $INDEX = $INDEX ? use_my_icon("$INDEX", 'index') : $BLANK_ICON;
if (!$CUSTOM_BUTTONS) {
$CUSTOM_BUTTONS = $BLANK_ICON;
}