changeset 5509:9d20508e0c4e

action/diff.py: Fix for case when user can't revert page.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Sun, 07 Feb 2010 11:50:58 +0300
parents 40594fbcf376
children 660b7d2d77ed
files MoinMoin/action/diff.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Sat Feb 06 00:55:50 2010 +0100
+++ b/MoinMoin/action/diff.py	Sun Feb 07 11:50:58 2010 +0300
@@ -128,7 +128,6 @@
     revert_html = ""
     if request.user.may.revert(pagename):
         revert_html = """
- <td style="border:0">
   <form action="%s" method="get">
    <div style="text-align:center">
     <input name="action" value="revert" type="hidden">
@@ -136,7 +135,6 @@
     <input value="%s" type="submit"%s>
    </div>
   </form>
- </td>
  """ % (page_url, rev2, _("Revert to this revision"), enabled(newrev < currentrev))
 
     other_diff_button_html = """
@@ -157,7 +155,9 @@
 <table class="diff">
 <tr>
  %(button)s
- %%s
+ <td style="border:0">
+   %%s
+ </td>
  %(button)s
 </tr>
 </table>