$def with (stats, date) $var title: $_("Imports") / $date
$:render_template("admin/menu")

$_("Imports") / $date

$_("Summary")

$ summary = stats.get_items_summary(date)
$_("Total")$sum(summary['counts'].values())
$_("Created")$summary['counts'].get('created', 0)
$_("Found")$summary['counts'].get('found', 0)
$_("Modified")$summary['counts'].get('modified', 0)
$_("Failed")$summary['counts'].get('failed', 0)
$_("Pending")$summary['counts'].get('pending', 0)

$_("Items")

$for row in stats.get_items(date):
# $_("Identifier") $_("OL Key") $_("Status") $_("Error") $_("Added Time") $_("Imported Time")
$loop.index $truncate(row.ia_id, 40) $if row.ol_key: $row.ol_key.split("/")[-1] $else: - $row.status ${row.error or '-'} $row.added_time $row.import_time