]> git.phdru.name Git - phdru.name/phdru.name.git/blob - phd_pp_ru.tmpl
First/prev/next/last links in dotfiles and blog tags.
[phdru.name/phdru.name.git] / phd_pp_ru.tmpl
1 #encoding koi8-r
2 #extends phd_pp
3 #implements respond
4 #attr $Title = ''
5 #attr $Description = None
6 #attr $Keywords = None
7 #attr $Copyright = None
8 #attr $Start = None
9 #attr $First = None
10 #attr $Prev = None
11 #attr $Next = None
12 #attr $Last = None
13 #attr $refresh = None
14 #import time
15 #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
16 #attr $last_modified_ru = time.strftime("%d.%m.%Y в %T", time.localtime())
17 #attr $styles = None
18 #attr $alternates = None
19 #attr $Tag = ()
20 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
21    "http://www.w3.org/TR/html4/loose.dtd">
22 <html>
23 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
24 <head>
25 <meta HTTP-Equiv="Content-Type" content="text/html">
26 <meta HTTP-Equiv="Content-Location" content="http://phd.pp.ru$path">
27 <meta HTTP-Equiv="Last-Modified" content="$last_modified_en">
28 <title>$Title</title>
29 #if $refresh:
30 <meta HTTP-Equiv="Refresh" content="$refresh">
31 #end if
32 #if $Description
33 <meta name="description" content="$Description">
34 #end if
35 #if $Keywords
36 <meta name="keywords" content="$Keywords">
37 #end if
38 #if $Copyright
39 #set $full_copyright = $copyright($Copyright)
40 #if $path.startswith("/Russian/")
41 #set $author_href = $root + "Russian/"
42 #set $copy_href = $root + "Russian/free.html"
43 #else
44 #set $author_href = $root or "./"
45 #set $copy_href = $root + "free.html"
46 #end if
47 <meta name="author" content="Oleg Broytman">
48 <link rel="author" href="$author_href" title="&copy; $full_copyright PhiloSoft Design">
49 <meta name="copyright" content="&copy; $full_copyright PhiloSoft Design">
50 <link rel="copyright" href="$copy_href" title="&copy; $full_copyright PhiloSoft Design">
51 #end if
52 <link rev="made" href="mailto:phd@phd.pp.ru">
53 <meta name="generator" content="CheetahTemplate">
54 <meta name="robots" content="index, follow">
55 #if $root
56 #if $path.endswith('index.html')
57 <link rel="up" href="../">
58 #else
59 <link rel="up" href="./">
60 #end if
61 #end if
62 #if $Start
63 <link rel="start" href="$Start">
64 #elif not $path.endswith('index.html')
65 <link rel="start" href="./">
66 #end if
67 #if $First
68 <link rel="first" href="$First">
69 #end if
70 #if $Prev
71 <link rel="prev" href="$Prev">
72 #end if
73 #if $Next
74 <link rel="next" href="$Next">
75 #end if
76 #if $Last
77 <link rel="last" href="$Last">
78 #end if
79 #if $path != "/search.html"
80 <link rel="search" type="text/html" href="${root}search.html">
81 #end if
82 <link rel="stylesheet" type="text/css" media="screen" href="${root}phd.css">
83 #if $styles
84 #for $media, $style in $styles
85 <STYLE type="text/css" media="$media">
86 <!--
87 $style
88 --></STYLE>
89 #end for
90 #end if
91 #if $alternates
92 #for $title, $type, $href in $alternates
93 <link rel="alternate" title="$title" type="$type" href="$href">
94 #end for
95 #end if
96 <link rel="shortcut icon" href="${root}favicon.ico">
97 #if not $root
98 <link rel="openid.delegate" href="http://phd.pp.ru/">
99 <link rel="openid2.local_id" href="http://phd.pp.ru/">
100 <link rel="openid.server" href="http://phd.pp.ru/cgi-bin/poit.py">
101 <link rel="openid2.provider" href="http://phd.pp.ru/cgi-bin/poit.py">
102 #end if
103 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
104 </head>
105 <body bgcolor="#CCCCCC" text="#000000"
106       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
107 $body
108 #def link_tag($tag)
109 <a href="../../../tags/${tag}.html">$tag</a>
110 #end def
111 #if $Tag
112 <hr width="90%">
113 #if isinstance($Tag, basestring)
114 #if $path.startswith("/Russian/")
115 Тег:
116 #else
117 Tag:
118 #end if
119 $link_tag($Tag)
120 #else
121 #if $path.startswith("/Russian/")
122 Теги:
123 #else
124 Tags:
125 #end if
126 #for $tag in $Tag
127 $link_tag($tag)
128 #end for
129 #end if
130 #end if
131 <hr width="90%">
132 #if $path.endswith("index.html")
133 #set $path = $path[:-len("index.html")]
134 #end if
135 #if $path.startswith("/Russian/")
136 <p class="head" style="font-size: 60%">Эта страница <a href="http://phd.pp.ru$path">http://phd.pp.ru$path</a>
137 была сгенерирована $last_modified_ru из шаблона CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>;
138 <a href="${root}Russian/free.html">Некоторые права зарезервированы</a>.
139 Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a> аспектах этого сайта.
140 </p>
141 #else
142 <p class="head" style="font-size: 60%">This is the page <a href="http://phd.pp.ru$path">http://phd.pp.ru$path</a>.
143 It was generated on $last_modified_en from CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>.
144 <a href="./${root}free.html">Some rights are reserved</a>.
145 Read more <a href="${root}about/">about</a> <a href="${root}about/technical.html">technical</a> aspects of the site.
146 </p>
147 #end if
148 </body>
149 </html>#slurp