]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - phd_site.tmpl
Убрать ссылки openid со всех страниц, кроме корневой
[phdru.name/phdru.name.git] / phd_site.tmpl
index bf636a498b5581cb0743ea983e82c4716142d6e2..d176f0ee6ee6bd787e1f4d85c0be39a879f4e7b3 100644 (file)
 #attr $Prev = None
 #attr $Next = None
 #attr $Last = None
-#attr $refresh = None
+#attr $Refresh = None
 #import time
 #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime())
-#attr $last_modified_ru = time.strftime("%d.%m.%Y в %T", time.localtime())
+#attr $local_time = time.localtime()
 #attr $styles = None
 #attr $alternates = None
 #attr $Tag = ()
@@ -27,8 +27,8 @@
 <meta HTTP-Equiv="Content-Location" content="http://phdru.name$path">
 <meta HTTP-Equiv="Last-Modified" content="$last_modified_en">
 <title>$Title</title>
-#if $refresh:
-<meta HTTP-Equiv="Refresh" content="$refresh">
+#if $Refresh:
+<meta HTTP-Equiv="Refresh" content="$Refresh">
 #end if
 #if $Description
 <meta name="description" content="$Description">
@@ -95,16 +95,25 @@ $style
 #end for
 #end if
 <link rel="shortcut icon" href="${root}favicon.ico">
-#if not $root
+#if not $root and $path.endswith('index.html')
 <link rel="openid.delegate" href="http://phdru.name/">
 <link rel="openid2.local_id" href="http://phdru.name/">
-<link rel="openid.server" href="http://phdru.name/cgi-bin/poit.py">
-<link rel="openid2.provider" href="http://phdru.name/cgi-bin/poit.py">
+<link rel="openid.server" href="http://home.phdru.name/cgi-bin/poit.py">
+<link rel="openid2.provider" href="http://home.phdru.name/cgi-bin/poit.py">
 #end if
 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
 </head>
 <body bgcolor="#CCCCCC" text="#000000"
       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
+<p class="small">
+#set $path_components = $path.split('/')[1:-1]
+#set $breadcrumbs = ['<a href="' + $root + '">phdru.name</a>']
+#for $i in range(len($path_components))
+#set $subpath = '/'.join($path_components[:i+1])
+#silent $breadcrumbs.append('<a href="' + $root + $subpath + '/">' + $path_components[i]+ '</a>')
+#end for
+#echo " / ".join($breadcrumbs)
+</p>
 $body
 #def link_tag($tag)
 <a href="../../../tags/${tag}.html">$tag</a>
@@ -135,10 +144,11 @@ $link_tag($tag)
 #end if
 #if $path.startswith("/Russian/")
 <p class="head" style="font-size: 60%">Эта страница <a href="http://phdru.name$path">http://phdru.name$path</a>
-была сгенерирована $last_modified_ru из шаблона CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>;
+была сгенерирована $time.strftime("%d.%m.%Y", $local_time) в $time.strftime("%T", $local_time) из шаблона CheetahTemplate
+<a href="$_fileBaseName">$_fileBaseName</a>;
 <a href="${root}Russian/free.html">Некоторые права зарезервированы</a>.
-Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a> аспектах этого сайта.
-</p>
+Вы можете узнать <a href="${root}about/">о</a> <a href="${root}about/technical.html">технических</a>
+аспектах этого сайта.</p>
 #else
 <p class="head" style="font-size: 60%">This is the page <a href="http://phdru.name$path">http://phdru.name$path</a>.
 It was generated on $last_modified_en from CheetahTemplate <a href="$_fileBaseName">$_fileBaseName</a>.