changeset 380:f58386c66150

CheckTranslation: offer show/raw/edit links separately
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 20 Apr 2009 02:36:24 +0200
parents bc9abf2a8b6d
children 7e2f4d3c1007
files data/plugin/action/CheckTranslation.py
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/CheckTranslation.py	Sun Apr 19 18:34:39 2009 +0200
+++ b/data/plugin/action/CheckTranslation.py	Mon Apr 20 02:36:24 2009 +0200
@@ -65,14 +65,22 @@
         orig_page = Page(request, orig_page_name)
         trans_page = Page(request, trans_page_name)
 
-        orig_status = [orig_page.link_to(request, orig_page_name, querystr=raw_querystr), ]
+        orig_status = [
+            orig_page.link_to(request, orig_page_name) + " " +
+            orig_page.link_to(request, "[raw]", querystr=raw_querystr) + " " +
+            orig_page.link_to(request, "[edit]", querystr=edit_querystr, **edit_attrs)
+        ]
         info = "%d" % orig_page.size()
         last_edit = orig_page.lastEditInfo()
         if last_edit:
             info += " %(editor)s %(time)s" % last_edit
         orig_status.append(info)
 
-        trans_status = [trans_page.link_to(request, trans_page_name, querystr=edit_querystr, **edit_attrs), ]
+        trans_status = [
+            trans_page.link_to(request, trans_page_name) + " " +
+            trans_page.link_to(request, "[raw]", querystr=raw_querystr) + " " +
+            trans_page.link_to(request, "[edit]", querystr=edit_querystr, **edit_attrs)
+        ]
         info = "%d" % trans_page.size()
         last_edit = trans_page.lastEditInfo()
         if last_edit: