]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Added links and icons for RSS and Atom feeds.
authorOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2006 13:30:23 +0000 (13:30 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2006 13:30:23 +0000 (13:30 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@40 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

make-news.py

index 4f132f7cb4f5813d1b355850c8874796622e29de..50890ec1fd9ff5526c4ed45f45903ea251c69007 100755 (executable)
@@ -1,4 +1,5 @@
 #! /usr/local/bin/python -O
+# -*- coding: koi8-r -*-
 
 __version__ = "$Revision$"[11:-2]
 __revision__ = "$Id$"[5:-2]
@@ -28,6 +29,27 @@ for item in news_items:
 new_text.append("""\
    </ul>
 </p>
+
+<p class="head">
+""")
+
+if lang == "en":
+   new_text.append("""\
+News are also available in
+<A HREF="atom_10.xml">Atom 1.0 <img src="Graphics/atom_10.jpg" border=0></A>
+and <A HREF="rss_20.xml">RSS 2.0 <img src="Graphics/rss_20.jpg" border=0></A>
+formats.
+""")
+
+elif lang == "ru":
+   new_text.append("""\
+Новостевая лента в форматах
+<A HREF="atom_10.xml">Atom 1.0 <img src="../Graphics/atom_10.jpg" border=0></A>
+и <A HREF="rss_20.xml">RSS 2.0 <img src="../Graphics/rss_20.jpg" border=0></A>.
+""")
+
+new_text.append("""\
+</p>
 #end def
 $phd_pp_ru.respond(self)
 """)