changeset 1892:dc1c3ca94cf8

don't use ID for navi_bar links as there are 2 navibars on a page for modern theme
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 18 Mar 2007 16:39:30 +0100
parents 447c183a41bc
children d367d585c837
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Fri Mar 16 13:06:03 2007 +0100
+++ b/MoinMoin/theme/__init__.py	Sun Mar 18 16:39:30 2007 +0100
@@ -1095,7 +1095,7 @@
         _ = self.request.getText
         return page.link_to(self.request,
                             text=_(self.request.cfg.supplementation_page_name, formatted=False),
-                            querystr={'action': 'supplementation'}, id='supplementation', rel='nofollow')
+                            querystr={'action': 'supplementation'}, css_class='nbsupplementation', rel='nofollow')
 
     def guiworks(self, page):
         """ Return whether the gui editor / converter can work for that page.
@@ -1179,7 +1179,7 @@
         _ = self.request.getText
         return page.link_to(self.request,
                             text=_('Info', formatted=False),
-                            querystr={'action': 'info'}, id='info', rel='nofollow')
+                            querystr={'action': 'info'}, css_class='nbinfo', rel='nofollow')
 
     def subscribeLink(self, page):
         """ Return subscribe/unsubscribe link to valid users
@@ -1195,7 +1195,7 @@
             text = _("Unsubscribe", formatted=False)
         else:
             text = _("Subscribe", formatted=False)
-        return page.link_to(self.request, text=text, querystr={'action': 'subscribe'}, id='subscribe', rel='nofollow')
+        return page.link_to(self.request, text=text, querystr={'action': 'subscribe'}, css_class='nbsubscribe', rel='nofollow')
 
     def quicklinkLink(self, page):
         """ Return add/remove quicklink link
@@ -1211,14 +1211,14 @@
             text = _("Remove Link", formatted=False)
         else:
             text = _("Add Link", formatted=False)
-        return page.link_to(self.request, text=text, querystr={'action': 'quicklink'}, id='quicklink', rel='nofollow')
+        return page.link_to(self.request, text=text, querystr={'action': 'quicklink'}, css_class='nbquicklink', rel='nofollow')
 
     def attachmentsLink(self, page):
         """ Return link to page attachments """
         _ = self.request.getText
         return page.link_to(self.request,
                             text=_('Attachments', formatted=False),
-                            querystr={'action': 'AttachFile'}, id='attachments', rel='nofollow')
+                            querystr={'action': 'AttachFile'}, css_class='nbattachments', rel='nofollow')
 
     def startPage(self):
         """ Start page div with page language and direction