changeset 5850:8b4f02226670

Option which gives ability to turn off addition of page history RSS feed link added.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 18 May 2012 13:25:44 +0400
parents f7a570f3c1cb
children ab0bc2441518
files MoinMoin/config/multiconfig.py MoinMoin/theme/__init__.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Wed May 16 08:25:04 2012 +0400
+++ b/MoinMoin/config/multiconfig.py	Fri May 18 13:25:44 2012 +0400
@@ -1319,6 +1319,8 @@
                                   "Otherwise pattern sets specific pagename. "
                                   "Can be changed via page URL query parameter "
                                   "of rss_rc action."),
+      ('show_page_history_link', True, "Add link to page change history "
+                                       "RSS feed in theme."),
     )),
 }
 
--- a/MoinMoin/theme/__init__.py	Wed May 16 08:25:04 2012 +0400
+++ b/MoinMoin/theme/__init__.py	Fri May 18 13:25:44 2012 +0400
@@ -901,7 +901,7 @@
                     u'href="%s" type="application/rss+xml">') % (
                         wikiutil.escape(self.cfg.sitename, True),
                         wikiutil.escape(self.rsshref(page), True) )
-        elif rss_supported:
+        elif rss_supported and self.cfg.rss_show_page_history_link:
             link = (u'<link rel="alternate" title="%s: %s" '
                     u'href="%s" type="application/rss+xml">') % (
                         wikiutil.escape(self.cfg.sitename, True), page.page_name,