changeset 5621:173c6612e240

action/diff.py: Some minor visual improvements ? fixed table layout.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Wed, 10 Mar 2010 04:16:45 +0300
parents a02d87f66ce7
children 6df6ce00ee99
files MoinMoin/action/diff.py MoinMoin/web/static/htdocs/classic/css/screen.css MoinMoin/web/static/htdocs/modern/css/screen.css MoinMoin/web/static/htdocs/modernized/css/screen.css MoinMoin/web/static/htdocs/rightsidebar/css/screen.css
diffstat 5 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Wed Mar 10 04:14:15 2010 +0300
+++ b/MoinMoin/action/diff.py	Wed Mar 10 04:16:45 2010 +0300
@@ -138,9 +138,9 @@
  """ % (page_url, rev2, _("Revert to this revision"), enabled(newrev < currentrev))
 
     other_diff_button_html = """
- <td style="border:0; width:1%%">
+ <td style="border:0;">
   <form action="%s" method="get">
-   <div style="text-align:left">
+   <div style="text-align:%s">
     <input name="action" value="diff" type="hidden">
     <input name="rev1" value="%d" type="hidden">
     <input name="rev2" value="%d" type="hidden">
@@ -170,9 +170,9 @@
     next_newrev = (newrev < currentrev) and (newrev + 1) or currentrev
 
     navigation_html = navigation_html % (title,
-       page_url, prev_oldrev, oldrev, _("Previous change"), enabled(oldrev > 1),
+       page_url, "left", prev_oldrev, oldrev, _("Previous change"), enabled(oldrev > 1),
        revert_html,
-       page_url, newrev, next_newrev, _("Next change"), enabled(newrev < currentrev), )
+       page_url, "right", newrev, next_newrev, _("Next change"), enabled(newrev < currentrev), )
 
     request.write(f.rawHTML(navigation_html))
 
--- a/MoinMoin/web/static/htdocs/classic/css/screen.css	Wed Mar 10 04:14:15 2010 +0300
+++ b/MoinMoin/web/static/htdocs/classic/css/screen.css	Wed Mar 10 04:16:45 2010 +0300
@@ -387,6 +387,7 @@
 
 .diff {
 	width:99%;
+    table-layout: fixed;
 }
 
 .diff-header {
--- a/MoinMoin/web/static/htdocs/modern/css/screen.css	Wed Mar 10 04:14:15 2010 +0300
+++ b/MoinMoin/web/static/htdocs/modern/css/screen.css	Wed Mar 10 04:16:45 2010 +0300
@@ -447,6 +447,7 @@
 
 .diff {
     width:99%;
+    table-layout: fixed;
 }
 
 .diff-header {
--- a/MoinMoin/web/static/htdocs/modernized/css/screen.css	Wed Mar 10 04:14:15 2010 +0300
+++ b/MoinMoin/web/static/htdocs/modernized/css/screen.css	Wed Mar 10 04:16:45 2010 +0300
@@ -403,6 +403,7 @@
 
 .diff {
     width:99%;
+    table-layout: fixed;
 }
 
 .diff-header {
--- a/MoinMoin/web/static/htdocs/rightsidebar/css/screen.css	Wed Mar 10 04:14:15 2010 +0300
+++ b/MoinMoin/web/static/htdocs/rightsidebar/css/screen.css	Wed Mar 10 04:16:45 2010 +0300
@@ -342,6 +342,7 @@
 
 .diff {
 	width: 99%;
+    table-layout: fixed;
 }
 
 .diff-title {