[%# admin/importer/history.tt Admin page for a user's entire importer history Authors: Afuna Copyright (c) 2015-2017 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- sections.title = '.title' | ml -%] [%- dw.need_res( 'stc/simple-form.css') -%] [%- USE date -%]
[%- form.textbox( label = dw.ml( "Username" ) id = "user" name = "user" ) -%]
[% form.submit( value = dw.ml( ".form.submit" ) ) -%]
[%- IF import_items.defined && import_items.size > 0 -%] [%- FOREACH import_id = import_items.keys.nsort -%] [% SET parity = loop.count % 2 ? 'even' : 'odd' %] [%- FOREACH item = import_items.$import_id.pairs -%] [%- END -%] [%- END %]
[% '.col.importnum' | ml %] [% '.col.item' | ml %] [% '.col.status' | ml %] [% '.col.created' | ml %] [% '.col.lasttouch' | ml %] [% '.col.source' | ml %]
[% import_id %] [% item.key %] [% item.value.status %] [% date.format( item.value.created ) %] [% item.value.last_touch ? date.format( item.value.last_touch ) : "-" %] [% item.value.source %]
[%- ELSE -%]

[% '.empty' | ml %]

[%- END -%]