html_file.write("#attr $Copyright = 2003\n")
if start:
html_file.write("#attr $Start = \"index.html\"\n")
+ html_file.write("#attr $First = \"profile.html\"\n")
if prev:
html_file.write("#attr $Prev = \"%s.html\"\n" % prev)
if next:
html_file.write("#attr $Next = \"%s.html\"\n" % next)
+ html_file.write("#attr $Last = \"pdbrc.py.html\"\n")
html_file.write('#attr $alternates = (("Plain text version", "text/plain", "%s"),)' % txt_name)
html_file.write("\n")
html_file.write("#def body_html\n")
#attr $Keywords = None
#attr $Copyright = None
#attr $Start = None
+#attr $First = None
#attr $Prev = None
#attr $Next = None
+#attr $Last = None
#attr $refresh = None
#import time
#attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
#end if
#if $Copyright
#set $full_copyright = $copyright($Copyright)
+#if $path.startswith("/Russian/")
+#set $author_href = $root + "Russian/"
+#set $copy_href = $root + "Russian/free.html"
+#else
+#set $author_href = $root or "./"
+#set $copy_href = $root + "free.html"
+#end if
<meta name="author" content="Oleg Broytman">
+<link rel="author" href="$author_href" title="© $full_copyright PhiloSoft Design">
<meta name="copyright" content="© $full_copyright PhiloSoft Design">
-<link rel="copyright" href="." title="© $full_copyright PhiloSoft Design">
+<link rel="copyright" href="$copy_href" title="© $full_copyright PhiloSoft Design">
#end if
-<meta name="generator" content="CheetahTemplate">
<link rev="made" href="mailto:phd@phd.pp.ru">
+<meta name="generator" content="CheetahTemplate">
<meta name="robots" content="index, follow">
#if $root
-<link rel="Top" href="$root">
-<link rel="Up" href="../">
+#if $path.endswith('index.html')
+<link rel="up" href="../">
+#else
+<link rel="up" href="./">
+#end if
#end if
#if $Start
-<link rel="Start" href="$Start">
+<link rel="start" href="$Start">
+#elif not $path.endswith('index.html')
+<link rel="start" href="./">
+#end if
+#if $First
+<link rel="first" href="$First">
#end if
#if $Prev
-<link rel="Prev" href="$Prev">
+<link rel="prev" href="$Prev">
#end if
#if $Next
-<link rel="Next" href="$Next">
+<link rel="next" href="$Next">
+#end if
+#if $Last
+<link rel="last" href="$Last">
+#end if
+#if $path != "/search.html"
+<link rel="search" type="text/html" href="${root}search.html">
#end if
<link rel="stylesheet" type="text/css" media="screen" href="${root}phd.css">
#if $styles