[% INCLUDE 'admin/header.html' title=tprintf(loc('Editing update %d'), update.id ) -%]
[% PROCESS 'admin/report_blocks.html' %]
[% INCLUDE status_message %]
[% moderation_history = update.moderation_history %]
[% IF moderation_history %]
[% loc('Moderation history') %]
[% last_history = update %]
[% FOR history IN moderation_history %]
[% SET diff = history.compare_with(last_history) %]
[% SET log = history.admin_log %]
- [% tprintf(loc('Moderated by %s at %s'), log.user.name OR loc('an administrator'), prettify_dt(history.created)) %]
[%~ IF log.reason %]
“[% log.reason %]”[% END %]
[% IF diff.detail %]
[% loc('Text:') %] [% diff.detail %][% END %]
[% IF diff.photo %]
[% loc('Photo') %]: [% diff.photo %][% END %]
[% IF diff.anonymous %]
[% loc('Anonymous:') %] [% diff.anonymous %][% END %]
[% IF diff.extra %]
[% loc('Extra data:') %] [% diff.extra %][% END %]
[% last_history = history %]
[% END %]
[% END %]
[% INCLUDE 'admin/footer.html' %]