diff MoinMoin/macro/WantedPages.py @ 1383:fdb726f0f34f

make more use of formatter
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Aug 2006 02:07:13 +0200
parents b65614f8a393
children 20f3ec17cf9f
line wrap: on
line diff
--- a/MoinMoin/macro/WantedPages.py	Mon Aug 21 01:30:06 2006 +0200
+++ b/MoinMoin/macro/WantedPages.py	Mon Aug 21 02:07:13 2006 +0200
@@ -25,7 +25,9 @@
     # TODO: we should make this a widget and use on all page listing pages
     label = (_('Include system pages'), _('Exclude system pages'))[allpages]
     page = macro.formatter.page
-    controlbar = '<div class="controlbar">%s</div>' % page.link_to(request, label, querystr={'allpages': '%d' % allpages and '0' or '1'})
+    controlbar = macro.formatter.div(1, css_class="controlbar") + \
+                 page.link_to(request, label, querystr={'allpages': '%d' % allpages and '0' or '1'}) + \
+                 macro.formatter.div(0)
 
     # Get page dict readable by current user
     pages = request.rootpage.getPageDict()