changeset 919:c147baf694d9 storage-ng

less ugly diff display
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 03 Oct 2011 00:33:24 +0200
parents 764f209d1eae
children 6d9cfa2981d3
files MoinMoin/templates/diff.html MoinMoin/templates/diff_text.html
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/diff.html	Mon Oct 03 00:08:56 2011 +0200
+++ b/MoinMoin/templates/diff.html	Mon Oct 03 00:33:24 2011 +0200
@@ -1,7 +1,8 @@
 {% extends theme("show.html") %}
 {% block content %}
 {% block headline %}
-<h1>{{ _("Item: %(item_name)s (Diff between revision %(oldrevid)s and %(newrevid)s)", item_name=newrev.item.name, oldrevid=oldrev.revid, newrevid=newrev.revid) }}</h1>
+<h1>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h1>
+<br>
 {% endblock %}
 {{ item._render_data_diff(oldrev, newrev) }}
 {% endblock %}
--- a/MoinMoin/templates/diff_text.html	Mon Oct 03 00:08:56 2011 +0200
+++ b/MoinMoin/templates/diff_text.html	Mon Oct 03 00:33:24 2011 +0200
@@ -1,6 +1,10 @@
 {% import "utils.html" as utils %}
 
 {% macro show_meta(rev) %}
+    <div class="moin-diff-info moin-diff-info-rev-id">
+        <span class="moin-diff-info-caption">Revision:</span>
+        <span class="moin-diff-info-value">{{ rev.meta['revid'] }}</span>
+    </div>
     <div class="moin-diff-info moin-diff-info-rev-author">
         <span class="moin-diff-info-caption">Editor:</span>
         <span class="moin-diff-info-value">