mourningdove/views/admin/importer/detail.tt

53 lines
1.4 KiB
Text
Raw Permalink Normal View History

2026-05-24 01:03:05 +00:00
[%# admin/importer/detail.tt
Details for pending imports for a user
Authors:
Afuna <coder.dw@afunamatata.com>
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 -%]
[%- USE date -%]
Pending imports for [% username %].
[% IF errmsg %]
<div class='error-box'>
<p>[% errmsg | ml %]</p>
</div>
[% END %]
[%- IF import_items.defined && import_items.size > 0 -%]
[%- FOREACH import_id = import_items.keys.sort -%]
<h3>Import #[% import_id %]</h3>
<table class="table">
<thead><tr>
<th>[% '.col.item' | ml %]</th>
<th>[% '.col.status' | ml %]</th>
<th>[% '.col.created' | ml %]</th>
<th>[% '.col.lasttouch' | ml %]</th>
<th>[% '.col.source' | ml %]</th>
</tr></thead>
<tbody>
[%- FOREACH item = import_items.$import_id.pairs -%]
<tr>
<td>[% item.key %]</td>
<td>[% item.value.status %]</td>
<td>[% date.format( item.value.created ) %]</td>
<td>[% item.value.last_touch ? date.format( item.value.last_touch ) : "-" %]</td>
<td>[% item.value.source %]</td>
</tr>
[%- END -%]
</tbody>
</table>
[%- END %]
[%- ELSE -%]
<p>[% '.error.none_pending' | ml %]</p>
[%- END -%]