changeset 1240:d2eadfef54b8

right/left-aligning for prev/next images
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Thu, 10 Aug 2006 17:22:56 +0200
parents 20f59999e79c
children cba856bc0c05
files MoinMoin/search/results.py wiki/htdocs/modern/css/common.css
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/results.py	Thu Aug 10 17:15:32 2006 +0200
+++ b/MoinMoin/search/results.py	Thu Aug 10 17:22:56 2006 +0200
@@ -707,7 +707,7 @@
         return ''.join([
             f.table(1, attrs={'tableclass': 'searchpages'}),
             f.table_row(1),
-                f.table_cell(1),
+                f.table_cell(1, attrs={'class': 'prev'}),
                 # first image, previous page
                 l[0] and
                     ''.join([
@@ -728,7 +728,7 @@
                         f.table_cell(0),
                     ]) for i in page_range
                 ]),
-                f.table_cell(1),
+                f.table_cell(1, attrs={'class': 'next'}),
                 # last image, next page
                 l[-1] and
                     ''.join([
--- a/wiki/htdocs/modern/css/common.css	Thu Aug 10 17:15:32 2006 +0200
+++ b/wiki/htdocs/modern/css/common.css	Thu Aug 10 17:22:56 2006 +0200
@@ -371,6 +371,14 @@
     font-weight: bold;
 }
 
+.searchpages td.prev {
+    text-align: right;
+}
+
+.searchpage td.next {
+    text-align: left;
+}
+
 .searchpages td a, .searchpages td a:link {
     color: #000000;
     text-decoration: underline;