X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_pp_ru.tmpl;h=2ede5d4c4ef9267e7a0356c23a50602a7a00bc8c;hb=d68f2dd8fdab1ec22049d14f274ec34a2ed8431f;hp=a488704873f8c401d66e77f773f616ffeb51bfbb;hpb=6aa7ab00b5dc30b6221d0d55fecc1b0b957cdd79;p=phdru.name%2Fphdru.name.git diff --git a/phd_pp_ru.tmpl b/phd_pp_ru.tmpl index a488704..2ede5d4 100644 --- a/phd_pp_ru.tmpl +++ b/phd_pp_ru.tmpl @@ -5,13 +5,18 @@ #attr $Description = None #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()) #attr $last_modified_ru = time.strftime("%d.%m.%Y × %T", time.localtime()) #attr $styles = None +#attr $alternates = None +#attr $Tag = () @@ -32,15 +37,35 @@ #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 + + - + #end if - + + #if $root - +#if $path.endswith('index.html') +#else + +#end if +#end if +#if $Start + +#elif not $path.endswith('index.html') + +#end if +#if $First + #end if #if $Prev @@ -48,6 +73,12 @@ #if $Next #end if +#if $Last + +#end if +#if $path != "/search.html" + +#end if #if $styles #for $media, $style in $styles @@ -57,24 +88,61 @@ $style --> #end for #end if +#if $alternates +#for $title, $type, $href in $alternates + +#end for +#end if + +#if not $root + + + + +#end if $body +#def link_tag($tag) +$tag +#end def +#if $Tag +
+#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 +
#if $path.endswith("index.html") #set $path = $path[:-len("index.html")] #end if -
#if $path.startswith("/Russian/")

üÔÁ ÓÔÒÁÎÉÃÁ http://phd.pp.ru$path ÂÙÌÁ ÓÇÅÎÅÒÉÒÏ×ÁÎÁ $last_modified_ru ÉÚ ÛÁÂÌÏÎÁ CheetahTemplate $_fileBaseName; +îÅËÏÔÏÒÙÅ ÐÒÁ×Á ÚÁÒÅÚÅÒ×ÉÒÏ×ÁÎÙ. ÷Ù ÍÏÖÅÔÅ ÕÚÎÁÔØ Ï ÔÅÈÎÉÞÅÓËÉÈ ÁÓÐÅËÔÁÈ ÜÔÏÇÏ ÓÁÊÔÁ.

#else

This is the page http://phd.pp.ru$path. -It was generated on $last_modified_en from CheetahTemplate $_fileBaseName; -read more about technical aspects of the site. +It was generated on $last_modified_en from CheetahTemplate $_fileBaseName. +Some rights are reserved. +Read more about technical aspects of the site.

#end if