don't show undo button in history, this may be confusing
@@ -123,12 +123,15 @@ def group_changes(changeset, can_edit=False, show_history=False):
'discarded': change.discarded_by_id is not None,
'apply_problem': change.check_apply_problem(),
'has_no_effect': change.check_has_no_effect(),
- 'can_restore': change.can_restore,
}
if show_history:
change_data.update({
'created': _('created at %(datetime)s') % {'datetime': date_format(change.created, 'DATETIME_FORMAT')},
})
+ else:
+ change_data.update({
+ 'can_restore': change.can_restore,
+ })
changes.append(change_data)
if change.action == 'create':
