[WiKI] Common site menu 4/4

Tony Lambregts tony.lambregts at gmail.com
Thu Jun 15 17:49:23 CDT 2006


Is there anything wrong with this patch?

Change log: update menus for all sites to have a common "WineHQ Menu".

files changed:  winehq/winehq.py



? winehq/winehq
? winehq/img/logo.png
Index: winehq/winehq.py
===================================================================
RCS file: /cvsroot/wine/wiki/winehq/winehq.py,v
retrieving revision 1.3
diff -u -r1.3 winehq.py
--- winehq/winehq.py	16 May 2005 03:57:10 -0000	1.3
+++ winehq/winehq.py	3 Jun 2006 20:09:15 -0000
@@ -271,6 +271,22 @@
  '''
          return html % args

+    def winepanel(self, d):
+        """ Create wiki panel """
+        _ = self.request.getText
+        html = [
+            u'<div class="sidepanel">',
+            self.sidetitle(_("WineHQ Menu")),
+            u'  <div class="sidecontent">',
+            u'    <li><a href="http://www.winehq.org/">   WineHQ</a></li>',
+            u'    <li><a href="http://appdb.winehq.org/"> AppDB</a></li>',
+            u'    <li><a href="http://bugs.winehq.org/">  Bugzilla</a></li>',
+            u'    <li><a href="http://wiki.winehq.org/">  Wine Wiki</a></li>',
+            u'  </div>',
+            u'</div>',
+            ]
+        return u'\n'.join(html)
+
      def wikipanel(self, d):
          """ Create wiki panel """
          _ = self.request.getText
@@ -351,6 +367,7 @@

              # Sidebar
              u'<div id="sidebar">',
+            self.winepanel(d),
              self.wikipanel(d),
              self.pagepanel(d),
              self.userpanel(d),





More information about the wine-devel mailing list