Commit 8ed18707 authored by Tres Seaver's avatar Tres Seaver

Make undo log easier to read.

Thanks to Toby Dickinson for the patch.

LP #142464
parent 73eb8f96
......@@ -93,6 +93,9 @@ Restructuring
Features Added
++++++++++++++
- LP #142464: Make undo log easier to read. Thanks to Toby Dickinson
for the patch.
- LP #142401: Added a link in the ZMI tree pane to make the tree state
persistent. Thanks to Lalo Martins for the patch.
......
......@@ -121,7 +121,7 @@ class UndoSupport(ExtensionClass.Base):
if desc:
desc = desc.split()
d1 = desc[0]
desc = ''.join(desc[1:])
desc = ' '.join(desc[1:])
if len(desc) > 60:
desc = desc[:56] + ' ...'
tid = "%s %s %s %s" % (encode64(tid), t, d1, desc)
......@@ -140,7 +140,7 @@ class UndoSupport(ExtensionClass.Base):
for tid in transaction_info:
tid=tid.split()
if tid:
transaction.get().note("Undo %s" % ''.join(tid[1:]))
transaction.get().note("Undo %s" % ' '.join(tid[1:]))
tid=decode64(tid[0])
undo(tid)
......
......@@ -66,7 +66,7 @@ modified objects that were modified by a selected transaction.
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-description; by <strong><dtml-if
<dtml-var description html_quote newline_to_br> by <strong><dtml-if
user_name>&dtml-user_name;<dtml-else
><em>Zope</em></dtml-if></strong>
</div>
......
......@@ -48,7 +48,7 @@
<div class="list-item">
<a href="&dtml-absolute_url;/HistoricalRevisions/&dtml-key;/manage_workspace"><dtml-var time fmt="%Y-%m-%d %H:%M"><dtml-if
user_name> (&dtml-user_name;)</dtml-if></a>
<br>&dtml-description;
<br><dtml-var description html_quote newline_to_br>
<dtml-if revision>
<br>revision: <em>&dtml-revision;</em>
</dtml-if>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment