From 519200ebab1705821dc6b7ca8e2cfbaf89384c17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 2 Jul 2014 15:05:53 +0200 Subject: [PATCH] Add form for edit history entry comparing --- com.woltlab.wcf/templates/editHistory.tpl | 113 +++++++++++------- .../files/lib/page/EditHistoryPage.class.php | 1 + 2 files changed, 74 insertions(+), 40 deletions(-) diff --git a/com.woltlab.wcf/templates/editHistory.tpl b/com.woltlab.wcf/templates/editHistory.tpl index 70e5f49020..1c5fc9689b 100644 --- a/com.woltlab.wcf/templates/editHistory.tpl +++ b/com.woltlab.wcf/templates/editHistory.tpl @@ -17,54 +17,87 @@ {include file='userNotice'}
{$diff}
-
-
-

{lang}wcf.edit.versions{/lang} {#$objects|count}

-
- - - - - - - - - - {event name='columnHeads'} - - + + +
+
+

{lang}wcf.edit.versions{/lang} {#$objects|count}

+
-
- - - - - - - - {event name='columns'} - - {foreach from=$objects item=edit} - +
{lang}wcf.global.objectID{/lang}{lang}wcf.user.username{/lang}{lang}wcf.edit.time{/lang}{lang}wcf.edit.reason{/lang}
- - {event name='rowButtons'} - {lang}wcf.edit.currentVersion{/lang}{$object->getUsername()}{@$object->getTime()|time}{$object->getEditReason()}
+ + + + + + + + {event name='columnHeads'} + + + + + - - - - + + + + {event name='columns'} - {/foreach} - -
{lang}wcf.global.objectID{/lang}{lang}wcf.user.username{/lang}{lang}wcf.edit.time{/lang}{lang}wcf.edit.reason{/lang}
- + + {event name='rowButtons'} {@$edit->entryID}{$edit->username}{@$edit->time|time}{$edit->editReason}{lang}wcf.edit.currentVersion{/lang}{$object->getUsername()}{@$object->getTime()|time}{$object->getEditReason()}
+ {foreach from=$objects item=edit} + + + + entryID} checked="checked"{/if} /> entryID} checked="checked"{/if} /> + {event name='rowButtons'} + + {@$edit->entryID} + {$edit->username} + {@$edit->time|time} + {$edit->editReason} + + {event name='columns'} + + {/foreach} + + + +
- +
+ {@SID_INPUT_TAG} + +
+ {include file='footer'} diff --git a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php index ae2e5f9043..c692cbb268 100644 --- a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php +++ b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php @@ -124,6 +124,7 @@ class EditHistoryPage extends AbstractPage { if (!$this->new) { $this->new = $this->object; + $this->newID = 'current'; } } -- 2.20.1