changeset 863:d421f075eb30 storage-ng

fix search to use revid
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 13:13:37 +0200
parents e1a68b3721cc
children 653f12dbaf9f
files MoinMoin/templates/search.html
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/search.html	Sun Sep 25 12:48:19 2011 +0200
+++ b/MoinMoin/templates/search.html	Sun Sep 25 13:13:37 2011 +0200
@@ -32,12 +32,12 @@
                 {% if result['wikiname'] == cfg.interwikiname %}
                     <tr>
                         <td class="moin-wordbreak">{{ result.pos + 1 }}
-                        <a href="{{ url_for_item(item_name=result['name'], wiki_name='Self', rev=result['rev_no']) }}"><b>{{ result['name'] }}</b></a>
+                        <a href="{{ url_for_item(item_name=result['name'], wiki_name='Self', rev=result['revid']) }}"><b>{{ result['name'] }}</b></a>
                         </td>
                     </tr>
                     <tr>
                         <td>
-                            <p class="info searchhitinfobar">{{ _("Revision: %(rev_no)d Last Change: %(mtime)s", rev_no=result['rev_no'], mtime=result['mtime']|datetimeformat) }}</p>
+                            <p class="info searchhitinfobar">{{ _("Revision: %(revid)s Last Change: %(mtime)s", revid=result['revid'], mtime=result['mtime']|datetimeformat) }}</p>
                         </td>
                     </tr>
                     <tr>
@@ -52,7 +52,7 @@
                 {% else %}
                     <tr>
                         <td class="moin-wordbreak">{{ result.pos + 1 }}
-                        <a class="moin-interwiki" href="{{ url_for_item(item_name=result['name'], wiki_name=result['wikiname'], rev=result['rev_no']) }}"><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a>
+                        <a class="moin-interwiki" href="{{ url_for_item(item_name=result['name'], wiki_name=result['wikiname'], rev=result['revid']) }}"><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a>
                         </td>
                     </tr>
                 {% endif %}