#attr $last_modified_ru = time.strftime("%d.%m.%Y в %T", time.localtime())
#attr $styles = None
#attr $alternates = None
+#attr $Tag = None
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<body bgcolor="#CCCCCC" text="#000000"
link="#0000bb" vlink="#551a8b" alink="#ff0000">
$body
+#def link_tag($tag)
+<a href="../../../tags/${tag}.html">$tag</a>
+#end def
+#if $Tag
+<hr width="90%">
+#if isinstance($Tag, basestring)
+#if $path.startswith("/Russian/")
+Тег:
+#else
+Tag:
+#end if
+$link_tag($Tag)
+#else
+#if $path.startswith("/Russian/")
+Теги:
+#else
+Tags:
+#end if
+#for $tag in $Tag
+$link_tag($tag)
+#end for
+#end if
+#end if
+<hr width="90%">
#if $path.endswith("index.html")
#set $path = $path[:-len("index.html")]
#end if
-<hr width="90%">
#if $path.startswith("/Russian/")
<p class="head" style="font-size: 60%">Эта страница <a href="http://phd.pp.ru$path">http://phd.pp.ru$path</a>
была сгенерирована $last_modified_ru из шаблона CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>;
title = ' '.join(title_parts[6:])
lead = getattr(template, "Lead", None)
- tags = getattr(template, "Tag", None)
+ tags = template.Tag
if isinstance(tags, basestring):
tags = (tags,)