don't show undo button in history, this may be confusing
This commit is contained in:
parent
74adaf68ba
commit
d86b31d0e9
1 changed files with 4 additions and 1 deletions
|
@ -123,12 +123,15 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
||||||
'discarded': change.discarded_by_id is not None,
|
'discarded': change.discarded_by_id is not None,
|
||||||
'apply_problem': change.check_apply_problem(),
|
'apply_problem': change.check_apply_problem(),
|
||||||
'has_no_effect': change.check_has_no_effect(),
|
'has_no_effect': change.check_has_no_effect(),
|
||||||
'can_restore': change.can_restore,
|
|
||||||
}
|
}
|
||||||
if show_history:
|
if show_history:
|
||||||
change_data.update({
|
change_data.update({
|
||||||
'created': _('created at %(datetime)s') % {'datetime': date_format(change.created, 'DATETIME_FORMAT')},
|
'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)
|
changes.append(change_data)
|
||||||
|
|
||||||
if change.action == 'create':
|
if change.action == 'create':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue